[RARSLAVE] Add logging messages
[rarslave2.git] / RarslaveConfig.py
index 527d976..42941d7 100644 (file)
@@ -100,12 +100,16 @@ class RarslaveConfig (object):
                        # into the code, so DON'T DO IT
                        value = self.__get_default_val(section, key)
 
-               # Convert config options to booleans for easier use
+               # Convert config options to native types for easier use
                SAFE_EVAL = ['None', 'True', 'False', '-1', '0', '1', '2']
 
                if value in SAFE_EVAL:
                        value = eval (value)
 
+               # Absolute-ize directories for easier use
+               if section == 'directories' and value != None:
+                       value = os.path.abspath (os.path.expanduser (value))
+
                return value
 
        def __init__(self):