Changed use of popen to getstatusoutput #4464
The getstatusoutput function seems easier to use
This commit is contained in:
parent
88d85204db
commit
dcf8a9f5f0
|
@ -775,13 +775,12 @@ class InternalCommands:
|
||||||
if sys.version_info < (2, 4):
|
if sys.version_info < (2, 4):
|
||||||
raise Exception("Python 2.4 or greater required.")
|
raise Exception("Python 2.4 or greater required.")
|
||||||
|
|
||||||
output = os.popen(
|
output = commands.getstatusoutput(
|
||||||
"macdeployqt %s/Synergy.app -verbose=2 -codesign='%s'" % (
|
"macdeployqt %s/Synergy.app -verbose=2 -codesign='%s'" % (
|
||||||
targetDir, self.macIdentity)).read()
|
targetDir, self.macIdentity))
|
||||||
|
|
||||||
print output
|
print output[1]
|
||||||
|
if "ERROR" in output[1]:
|
||||||
if "ERROR" in output:
|
|
||||||
raise Exception("macdeployqt failed")
|
raise Exception("macdeployqt failed")
|
||||||
|
|
||||||
def signmac(self):
|
def signmac(self):
|
||||||
|
|
Loading…
Reference in New Issue