summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Kreen2013-01-14 14:09:23 +0000
committerMarko Kreen2013-01-14 14:09:23 +0000
commit560985a413cf4834d2ec1aab4e07d2ab76bcc53e (patch)
treeb159fc57d862adb7718c591b4e0bd7764e939ced
parent327563df9fdc0c05bec8cf0ef89dc37cdab5b1a2 (diff)
skytools.Config: New default variables.
config_dir - directory where config is located at config_file - config file itself.
-rw-r--r--python/skytools/config.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/skytools/config.py b/python/skytools/config.py
index 3e58139b..6dce4045 100644
--- a/python/skytools/config.py
+++ b/python/skytools/config.py
@@ -34,6 +34,8 @@ class Config(object):
'job_name': job_name,
'service_name': main_section,
'host_name': socket.gethostname(),
+ 'config_dir': os.path.dirname(filename),
+ 'config_file': filename,
}
self.defs.update(user_defs)