Files
CHOMPStation2/code/modules/ext_scripts/python.dm
Mloc-Argent 9a5a1dc82c Made IRCbot's password and host a config option.
Added a hook to send a message to the bot when a round starts.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2013-08-05 14:07:06 +01: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)