diff --git a/gameconf.py b/gameconf.py index 351afa2dc5..04ac2fa165 100644 --- a/gameconf.py +++ b/gameconf.py @@ -1,6 +1,5 @@ from apps.config.models import ConfigValue import os -import settings """ Handle the setting/retrieving of server config directives. """ @@ -9,7 +8,7 @@ def host_os_is(osname): """ Check to see if the host OS matches the query. """ - if settings.OS_TYPE == osname: + if os.name == osname: return True return False @@ -25,4 +24,4 @@ def set_configvalue(configname, newvalue): """ conf = ConfigValue.objects.get(conf_key=configname) conf.conf_value = newvalue - conf.save() \ No newline at end of file + conf.save()