Changed logger init to use paths relative to current file
This commit is contained in:
parent
5e8c4b112f
commit
05c2ecdb89
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue