Skip to content
Snippets Groups Projects
Commit 69fb310c authored by lukas leufen's avatar lukas leufen
Browse files

Merge branch 'lukas_issue088_bug_wrong-logging-file-path' into 'develop'

Resolve "BUG: wrong logging file path"

See merge request toar/machinelearningtools!81
parents 00acb7bd f8790767
No related branches found
No related tags found
3 merge requests!90WIP: new release update,!89Resolve "release branch / CI on gpu",!81Resolve "BUG: wrong logging file path"
Pipeline #32687 passed
......@@ -45,9 +45,10 @@ Thumbs.db
/data/
/plots/
# tmp folder #
##############
# tmp and logging folder #
##########################
/tmp/
/logging/
# test related data #
#####################
......
......@@ -252,8 +252,7 @@ class Logger:
:return: path of logfile
"""
if not path: # set default path
path = os.path.dirname(sys.modules["__main__"].__file__)
path = os.path.join(path, "logging")
path = os.path.join(os.path.dirname(__file__), "..", "logging")
if not os.path.exists(path):
os.makedirs(path)
runtime = time.strftime("%Y-%m-%d_%H-%M-%S", time.localtime())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment