Files
Paradise/code/modules/ext_scripts/python.dm
2017-07-20 01:15:13 -07:00

10 lines
274 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 = python_path + " " + script + " " + args
shell("[command]")
return