On second thought, let's move os.name to gameconf.

This commit is contained in:
Greg Taylor 2007-06-04 15:11:15 +00:00
parent 8cc9abfa94
commit e6d7c51771

View file

@ -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()
conf.save()