|
@@ -5,9 +5,9 @@ import setup_util
|
|
|
|
|
|
def start(args, logfile, errfile):
|
|
|
setup_util.replace_text("onion/hello.c", "mysql_real_connect\(data.db\[i\], \".*\",", "mysql_real_connect(data.db[i], \"" + args.database_host + "\",")
|
|
|
- os.putenv("ONION_LOG","noinfo")
|
|
|
+
|
|
|
subprocess.call("rm *.o", cwd="onion", shell=True, stderr=errfile, stdout=logfile)
|
|
|
- subprocess.call("cp -R installs/onion/* onion/onion", shell=True, stderr=errfile, stdout=logfile)
|
|
|
+ subprocess.call("cp -R $IROOT/onion/* onion/onion", shell=True, stderr=errfile, stdout=logfile)
|
|
|
subprocess.call("rm CMakeCache.txt", shell=True, cwd="onion/onion/build", stderr=errfile, stdout=logfile)
|
|
|
subprocess.Popen("make && ./hello", shell=True, cwd="onion", stderr=errfile, stdout=logfile)
|
|
|
return 0
|