|
|
@ -640,6 +640,9 @@ def printUsage(): |
|
|
|
|
|
|
|
|
def signal_handler(signal, frame): |
|
|
def signal_handler(signal, frame): |
|
|
if options.nailgun: |
|
|
if options.nailgun: |
|
|
|
|
|
if options.echo or options.echoFull: |
|
|
|
|
|
print(options.ngprism + "stop") |
|
|
|
|
|
else: |
|
|
subprocess.Popen([options.ngprism, " stop"]).wait() |
|
|
subprocess.Popen([options.ngprism, " stop"]).wait() |
|
|
sys.exit(1) |
|
|
sys.exit(1) |
|
|
|
|
|
|
|
|
@ -676,6 +679,9 @@ if options.logDir and not os.path.isdir(options.logDir): |
|
|
print("Log directory \"" + options.logDir + "\" does not exist") |
|
|
print("Log directory \"" + options.logDir + "\" does not exist") |
|
|
sys.exit(1) |
|
|
sys.exit(1) |
|
|
if options.nailgun: |
|
|
if options.nailgun: |
|
|
|
|
|
if options.echo or options.echoFull: |
|
|
|
|
|
print(options.prismExec + " -ng &") |
|
|
|
|
|
else: |
|
|
os.system(options.prismExec + " -ng &") |
|
|
os.system(options.prismExec + " -ng &") |
|
|
time.sleep(0.5) |
|
|
time.sleep(0.5) |
|
|
for arg in args: |
|
|
for arg in args: |
|
|
@ -686,4 +692,7 @@ for arg in args: |
|
|
else: |
|
|
else: |
|
|
print("Error: File/directory " + arg + " does not exist") |
|
|
print("Error: File/directory " + arg + " does not exist") |
|
|
if options.nailgun: |
|
|
if options.nailgun: |
|
|
|
|
|
if options.echo or options.echoFull: |
|
|
|
|
|
print(options.ngprism + " stop") |
|
|
|
|
|
else: |
|
|
subprocess.Popen([options.ngprism, "stop"]).wait() |
|
|
subprocess.Popen([options.ngprism, "stop"]).wait() |