]> git.pld-linux.org Git - packages/python-skype.git/blame - execlp-args.patch
- release 7 (by relup.sh)
[packages/python-skype.git] / execlp-args.patch
CommitLineData
d9bccfc8
ER
1os.execlp() needs at least two args:
2
3Python 2.7.2 (default, Aug 16 2011, 10:09:58)
4[GCC 4.6.1 20110714 (release)] on linux2
5Type "help", "copyright", "credits" or "license" for more information.
6>>> import os
7>>> os.execlp('skype')
8Traceback (most recent call last):
9 File "<stdin>", line 1, in <module>
10 File "/usr/share/python2.7/os.py", line 327, in execlp
11 File "/usr/share/python2.7/os.py", line 344, in execvp
12 File "/usr/share/python2.7/os.py", line 380, in _execvpe
13ValueError: execv() arg 2 must not be empty
14>>> os.execlp('skype', 'skype')
15
16-> OK
17
18--- Skype4Py-1.0.32.0/Skype4Py/api/posix_x11.py~ 2009-09-26 15:19:37.000000000 +0300
19+++ Skype4Py-1.0.32.0/Skype4Py/api/posix_x11.py 2012-04-15 04:19:47.316670442 +0300
20@@ -400,7 +400,7 @@
21 if not self.is_running():
22 if os.fork() == 0: # we're the child
23 os.setsid()
24- os.execlp('skype')
25+ os.execlp('skype', 'skype')
26
27 def shutdown(self):
28 from signal import SIGINT
This page took 0.054875 seconds and 4 git commands to generate.