Skip to content

BUG: wrong logging file path

Currently, the logging file is set to:

path = os.path.dirname(sys.modules["__main__"].__file__)
path = os.path.join(path, "logging")

This works, if called by the run.py script (or comparable scripts), but leads to errors if called by pytest. Therefore change path to

os.path.join(os.path.dirname(__file__), '..', 'logging')

to log into root path