Needs to be before the machine.txt read

This commit is contained in:
AndyGrant committed 2018-06-12 21:33:02 -04:00
1 parent 1fb78cbd66
commit 0919597481
1 file changed
+3 -3
+3 -3
View File
@@ -1,6 +1,9 @@
import ast, argparse, time, sys, platform, multiprocessing
import shutil, subprocess, requests, zipfile, os, math, json
# Run from any location ...
os.chdir(os.path.dirname(os.path.abspath(__file__)))
# Argument Parsing ... <Server> <Threads> <?Compiler> <?UsePGO>
parser = argparse.ArgumentParser()
parser.add_argument('-U', '--username', help='Username', required=True)
@@ -35,9 +38,6 @@ except:
MACHINE_ID = None
print('<Warning> Machine unregistered, will register with Server')
# Run from any location ...
os.chdir(os.path.dirname(os.path.abspath(__file__)))
def killProcess(process):
if not IS_WINDOWS : os.system('pkill -TERM -P {0}'.format(process.pid))
else : subprocess.call(['taskkill', '/F', '/T', '/PID', str(process.pid)])