Files
CHOMPstation/code/modules/ext_scripts/python.dm
T
AnonymousHybi 3a26426ae3 okay im done
it's a environment issue i think
2018-03-21 16:23:54 +00:00

10 lines
281 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
shell("[command]")
return