git://git.onelab.eu
/
sface.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check for the x bit when locating an executable
[sface.git]
/
sface
/
sfiprocess.py
diff --git
a/sface/sfiprocess.py
b/sface/sfiprocess.py
index
fac19db
..
f8dc206
100644
(file)
--- a/
sface/sfiprocess.py
+++ b/
sface/sfiprocess.py
@@
-13,7
+13,7
@@
def find_executable(exec_name):
paths = os.getenv("PATH").split(':')
for p in paths:
exec_path = os.path.join(p, exec_name)
paths = os.getenv("PATH").split(':')
for p in paths:
exec_path = os.path.join(p, exec_name)
- if os.path.exists(exec_path):
+ if os.path.exists(exec_path)
and os.access(exec_path,os.X_OK)
:
return exec_path
return None
return exec_path
return None
@@
-64,7
+64,15
@@
class SfiProcess(QObject):
output = self.process.readAllStandardOutput()
self.output = self.output + output
if config.debug:
output = self.process.readAllStandardOutput()
self.output = self.output + output
if config.debug:
- print output
+ try:
+ print output
+ except IOError, e:
+ if (e.errno == 4):
+ # XXX why is this happening??
+ print "*** caught EINTR"
+ else:
+ raise
+
def processStandardError(self):
print self.process.readAllStandardError()
def processStandardError(self):
print self.process.readAllStandardError()