Skip to content
Snippets Groups Projects

Resolve "BUG: wrong logging file path"

Merged Ghost User requested to merge lukas_issue088_bug_wrong-logging-file-path into develop
2 files
+ 4
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
2
@@ -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())
Loading