Fixes manual runtimes without modifying the construction of every object

Loads configuration before map creation instead.

This reverts commit 37b14bae39.
This commit is contained in:
mwerezak
2014-12-13 09:05:06 -05:00
parent 75d163705a
commit 168cabf03a
5 changed files with 21 additions and 22 deletions

View File

@@ -504,11 +504,6 @@
if("python_path")
if(value)
config.python_path = value
else
if(world.system_type == UNIX)
config.python_path = "/usr/bin/env python2"
else //probably windows, if not this should work anyway
config.python_path = "python"
if("use_lib_nudge")
config.use_lib_nudge = 1
@@ -741,3 +736,11 @@
runnable_modes[M] = probabilities[M.config_tag]
//world << "DEBUG: runnable_mode\[[runnable_modes.len]\] = [M.config_tag]"
return runnable_modes
/datum/configuration/proc/post_load()
//apply a default value to config.python_path, if needed
if (!config.python_path)
if(world.system_type == UNIX)
config.python_path = "/usr/bin/env python2"
else //probably windows, if not this should work anyway
config.python_path = "python"