From e6d7c517714323cccaa2c93c67a94800effcce26 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Mon, 4 Jun 2007 15:11:15 +0000 Subject: [PATCH] On second thought, let's move os.name to gameconf. --- gameconf.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()