else:
clt.waitNSPID("/Containers/" + theComputer + "/FactoryServer",myServer.PID)
- #
- # Launch local Python Container (FactoryServerPy),
- # and wait until it is registered in naming service
- #
-
if 'pyContainer' in args['standalone']:
raise Exception('Python containers no longer supported')
if command:
proc = subprocess.Popen(command, shell=True)
res = proc.wait()
- if not res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
+ if res: sys.exit(1) # if there's an error when executing script, we should explicitly exit
return clt