Changed logger init to use paths relative to current file

This commit is contained in:
Duncan Sommerville 2015-01-07 11:46:06 -05:00
parent 5e8c4b112f
commit 05c2ecdb89
2 changed files with 3 additions and 2 deletions

View file

@ -61,7 +61,7 @@ def configure_locale():
# configure logging
try:
logging.config.fileConfig("logging.cfg")
logging.config.fileConfig("%s/logging.cfg" % os.path.dirname(os.path.realpath(__file__)))
#need to wait for Python 2.7 for this..
#logging.captureWarnings(True)