Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions multiply_prior_engine/prior_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import logging.config
import pkg_resources
import tempfile

from pathlib import Path

__author__ = "Thomas Ramsauer"
__copyright__ = "Thomas Ramsauer"
Expand Down Expand Up @@ -46,7 +46,8 @@ def __init__(self,
config_dict = yaml.safe_load(cfg)

# add temporary log file name to configuration
filename = os.path.join(tempfile.tempdir, 'prior_engine.log')
home_dir = str(Path.home())
filename = os.path.join(home_dir, '.multiply', 'tmp', 'prior_engine.log')
config_dict['handlers']['file']['filename'] = filename

# set level
Expand Down
2 changes: 1 addition & 1 deletion multiply_prior_engine/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# separation for sphinx use
__version__ = '0.5.1'
__version__ = '0.5.2.dev'
__status__ = 'prototype'
__license__ = 'GPLv3'