Files
Aurora.3/code/modules/ext_scripts/python.dm
ike709 3d568c173b Rename vars that override internal vars (#20837)
## About The Pull Request

OpenDream is adding `usr` and `args` to the `SoftReservedKeyword`
pragma: https://github.com/OpenDreamProject/OpenDream/pull/2307

This PR renames `var/usr` to `var/user` and `var/args` to
`var/arguments`.

## Why It's Good For The Game

This pragma is currently set as an error on Aurora, because using
internal var names for declared var names is cringe.
2025-06-19 10:48:06 +00:00

10 lines
292 B
Plaintext

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