diff --git a/code/controllers/configuration.dm b/code/controllers/configuration.dm index 14def97cd0..6891aaff8f 100644 --- a/code/controllers/configuration.dm +++ b/code/controllers/configuration.dm @@ -1,8 +1,5 @@ var/list/gamemode_cache = list() -// Also global to prevent easy edits -var/global/python_path = "" //Path to the python executable. Defaults to "python" on windows and "/usr/bin/env python2" on unix - /datum/configuration var/server_name = null // server name (for world name / status) var/server_suffix = 0 // generate numeric suffix based on server port @@ -52,6 +49,7 @@ var/global/python_path = "" //Path to the python executable. Defaults to "pytho var/fps = 20 var/tick_limit_mc_init = TICK_LIMIT_MC_INIT_DEFAULT //SSinitialization throttling var/Tickcomp = 0 + var/python_path = "" //Path to the python executable. Defaults to "python" on windows and "/usr/bin/env python2" on unix var/socket_talk = 0 // use socket_talk to communicate with other processes var/list/resource_urls = null var/antag_hud_allowed = 0 // Ghosts can turn on Antagovision to see a HUD of who is the bad guys this round. diff --git a/code/modules/ext_scripts/python.dm b/code/modules/ext_scripts/python.dm index 6781af866e..8f822c7193 100644 --- a/code/modules/ext_scripts/python.dm +++ b/code/modules/ext_scripts/python.dm @@ -4,6 +4,6 @@ if(world.system_type == MS_WINDOWS) script = replacetext(script, "/", "\\") - var/command = python_path + " " + script + " " + args + var/command = config.python_path + " " + script + " " + args shell("[command]") return