diff options
author | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-03-25 11:38:32 +0100 |
---|---|---|
committer | Stevan Radaković <stevan.radakovic@linaro.org> | 2013-03-25 11:38:32 +0100 |
commit | 07aa32d4a4ae61bbc64999689741c910640e481e (patch) | |
tree | f9a8981cd1687d2015c4f18be078c06af43dd6c6 | |
parent | 26bbef39497b30a13203b31deaa3c620d73d301a (diff) |
Change conf file path to be absolute.
-rw-r--r-- | scripts/ldap_sync | 5 |
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() |