Whoops, forgot a file.
This commit is contained in:
parent
bc2ea1780b
commit
8cc9abfa94
1 changed files with 10 additions and 0 deletions
10
gameconf.py
10
gameconf.py
|
|
@ -1,8 +1,18 @@
|
||||||
from apps.config.models import ConfigValue
|
from apps.config.models import ConfigValue
|
||||||
|
import os
|
||||||
|
import settings
|
||||||
"""
|
"""
|
||||||
Handle the setting/retrieving of server config directives.
|
Handle the setting/retrieving of server config directives.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def host_os_is(osname):
|
||||||
|
"""
|
||||||
|
Check to see if the host OS matches the query.
|
||||||
|
"""
|
||||||
|
if settings.OS_TYPE == osname:
|
||||||
|
return True
|
||||||
|
return False
|
||||||
|
|
||||||
def get_configvalue(configname):
|
def get_configvalue(configname):
|
||||||
"""
|
"""
|
||||||
Retrieve a configuration value.
|
Retrieve a configuration value.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue