From 8cc9abfa945ba1de668eed2519097d3c3bc8bb96 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Mon, 4 Jun 2007 04:00:08 +0000 Subject: [PATCH] Whoops, forgot a file. --- gameconf.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gameconf.py b/gameconf.py index 7ba47ab6f1..351afa2dc5 100644 --- a/gameconf.py +++ b/gameconf.py @@ -1,8 +1,18 @@ from apps.config.models import ConfigValue +import os +import settings """ 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): """ Retrieve a configuration value.