aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStevan Radaković <stevan.radakovic@linaro.org>2013-03-25 11:38:32 +0100
committerStevan Radaković <stevan.radakovic@linaro.org>2013-03-25 11:38:32 +0100
commit07aa32d4a4ae61bbc64999689741c910640e481e (patch)
treef9a8981cd1687d2015c4f18be078c06af43dd6c6
parent26bbef39497b30a13203b31deaa3c620d73d301a (diff)
Change conf file path to be absolute.
-rw-r--r--scripts/ldap_sync5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/ldap_sync b/scripts/ldap_sync
index de75327..12baa0d 100644
--- a/scripts/ldap_sync
+++ b/scripts/ldap_sync
@@ -26,9 +26,10 @@ import uuid
from ConfigParser import ConfigParser
config = ConfigParser()
-config.read('sync.conf')
+config.read(os.path.join(os.path.dirname(sys.argv[0]), "sync.conf"))
-logging.config.fileConfig('sync.conf')
+logging.config.fileConfig(os.path.join(os.path.dirname(sys.argv[0]),
+ "sync.conf"))
logger = logging.getLogger()