mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Logging of copy_logs
This commit is contained in:
@@ -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)
|
||||
@@ -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)
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user