From 624737d2e297b5b00d457d3dbcb3e523a7bfb508 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Wed, 3 Aug 2016 07:28:14 +0200 Subject: [PATCH] Fix for #45 DB_ROOT not found --- cps/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/config.py b/cps/config.py index 1cfddf9c..4ca5d0f7 100755 --- a/cps/config.py +++ b/cps/config.py @@ -6,7 +6,7 @@ import sys from configobj import ConfigObj -CONFIG_FILE= os.path.join(os.getcwd(), "config.ini") +CONFIG_FILE= os.path.join(os.path.dirname(os.path.realpath(__file__))+"\\..\\", "config.ini") CFG = ConfigObj(CONFIG_FILE) def CheckSection(sec):