#import sys #sys.path.insert(0, '/path/to/ddns/dir/') import os import ddns.cfg_parser if os.environ.get('DDNS_CFG_PATH'): cfg_file = os.environ['DDNS_CFG_PATH'] else: cfg_file = os.path.dirname(os.path.realpath(__file__)) + '/ddns.cfg' ddns.cfg_parser.cfg_file = cfg_file ddns.cfg_parser.read_config() from ddns import app as application