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

changed file path and added to gitignore

parent 00acb7bd
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 #32686 passed
...@@ -45,9 +45,10 @@ Thumbs.db ...@@ -45,9 +45,10 @@ Thumbs.db
/data/ /data/
/plots/ /plots/
# tmp folder # # tmp and logging folder #
############## ##########################
/tmp/ /tmp/
/logging/
# test related data # # test related data #
##################### #####################
......
...@@ -252,8 +252,7 @@ class Logger: ...@@ -252,8 +252,7 @@ class Logger:
:return: path of logfile :return: path of logfile
""" """
if not path: # set default path if not path: # set default path
path = os.path.dirname(sys.modules["__main__"].__file__) path = os.path.join(os.path.dirname(__file__), "..", "logging")
path = os.path.join(path, "logging")
if not os.path.exists(path): if not os.path.exists(path):
os.makedirs(path) os.makedirs(path)
runtime = time.strftime("%Y-%m-%d_%H-%M-%S", time.localtime()) 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.
Please register or to comment