diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-12-14 23:13:30 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-12-14 23:15:47 +0200 |
| commit | 6ea834a5dba8017b9e3010aa6610f34f034cdbdd (patch) | |
| tree | 28bc08c7119532884004d22b8c5788de313678de | |
| parent | dc540c722c5146156fadd2d5db5c14dc96a996c6 (diff) | |
partial config validation
| -rw-r--r-- | src-py/rhizi_server.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src-py/rhizi_server.py b/src-py/rhizi_server.py index 4f0c7b52..168e2f53 100644 --- a/src-py/rhizi_server.py +++ b/src-py/rhizi_server.py @@ -77,6 +77,11 @@ class Config(object): ret = Config() ret.__dict__ = cfg # allows setting of @property attributes + + # validate config + if False == os.path.isabs(ret.root_path): + ret.root_path = os.path.abspath(ret.root_path) + return ret def __str__(self): |
