Files
CHOMPstation/code/modules/ext_scripts/python.dm
T
2018-03-20 20:32:36 +00:00

10 lines
277 B
Plaintext

/proc/ext_python(var/script, var/args, var/scriptsprefix = 1)
if(scriptsprefix) script = "scripts/" + script
if(world.system_type == MS_WINDOWS)
script = replacetext(script, "/", "\\")
var/command = config.python_path + " " + script + " " + args
return shell(command)