diff --git a/boswatch/utils/paths.py b/boswatch/utils/paths.py index 08e54cb..4824af5 100644 --- a/boswatch/utils/paths.py +++ b/boswatch/utils/paths.py @@ -18,10 +18,9 @@ import logging import os import sys - logging.debug("- %s loaded", __name__) -ROOT_PATH = os.path.dirname(sys.modules['__main__'].__file__) +ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\boswatch", "").replace("\\", "/") LOG_PATH = ROOT_PATH + "/log/" CONFIG_PATH = ROOT_PATH + "/config/" CSV_PATH = ROOT_PATH + "/csv/" diff --git a/test/test_descriptor.py b/test/test_descriptor.py index b805bc1..e279e58 100644 --- a/test/test_descriptor.py +++ b/test/test_descriptor.py @@ -22,9 +22,7 @@ from boswatch.descriptor import descriptor class Test_Descriptor: - """!Unittests for the descriptor - - @todo Error because path's in paths.py are false when start over pytest""" + """!Unittests for the descriptor""" def test_loadCSVnotExist(self): """!read CSV file where not exist"""