Logging of copy_logs

This commit is contained in:
Rob Nelson
2014-02-27 13:00:46 -08:00
parent ed00bf851f
commit dd7e7dd177
3 changed files with 5 additions and 4 deletions

View File

@@ -1,3 +1,3 @@
/proc/copy_logs()
if(config.copy_logs)
ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"")
ext_python("copy_logs.py", "data/logs \"[config.copy_logs]\"", log_command=1)

View File

@@ -1,9 +1,10 @@
/proc/ext_python(var/script, var/args, var/scriptsprefix = 1)
/proc/ext_python(var/script, var/args, var/scriptsprefix = 1, var/log_command=0)
if(scriptsprefix) script = "scripts/" + script
if(world.system_type == MS_WINDOWS)
script = replacetext(script, "/", "\\")
var/command = config.python_path + " " + script + " " + args
//testing(command)
if(log_command)
testing(command)
return shell(command)