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)

View File

@@ -1,4 +1,4 @@
//These procs handle putting s tuff in your hand. It's probably best to use these rather than setting stuff manually
//These procs handle putting stuff in your hand. It's probably best to use these rather than setting stuff manually
//as they handle all relevant stuff like adding it to the player's screen and such
//Returns the thing in our active hand (whatever is in our active module-slot, in this case)