Files
Paradise/code/modules/ext_scripts/python.dm
2014-01-27 16:07:48 -05:00

9 lines
280 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