import ConfigParser
import os

CONFIG_PATH = '/opt/monstr/current.cfg'


Config = ConfigParser.ConfigParser()
print os.getcwd()
if os.path.isfile(CONFIG_PATH):
    Config.read(CONFIG_PATH)
else:
    print 'WARNING! Configuration is missing. Using test_conf.cfg'
    Config.read('test.cfg')    

def get_section(section):
    result = {}
    if section in Config.sections():
        options = Config.options(section)
        for option in options:
            result[option] = Config.get(section, option)
        return result
    else:
        raise Exception('Requested section is absent in configuration')

import ConfigParser
Config = ConfigParser.ConfigParser()

import os
print os.getcwd()
try:
    Config.read('/opt/monstr/current.cfg')
except Exception as e:
    print 'WARNING! Configuration is missing. Using test_conf.cfg'
    Config.read('test.cfg')    

def get_section(section):
    result = {}
    if section in Config.sections():
        options = Config.options(section)
        for option in options:
            result[option] = Config.get(section, option)
        return result
    else:
        raise Exception('Requested section is absent in configuration')

--- 
+++ 
@@ -1,11 +1,14 @@
 import ConfigParser
+import os
+
+CONFIG_PATH = '/opt/monstr/current.cfg'
+
+
 Config = ConfigParser.ConfigParser()
-
-import os
 print os.getcwd()
-try:
-    Config.read('/opt/monstr/current.cfg')
-except Exception as e:
+if os.path.isfile(CONFIG_PATH):
+    Config.read(CONFIG_PATH)
+else:
     print 'WARNING! Configuration is missing. Using test_conf.cfg'
     Config.read('test.cfg')    
 
FIX: Check whether current config exists usinf os and if
