From 3feda678e28ad2930755a9c134aa354aa530fcb9 Mon Sep 17 00:00:00 2001 From: Bastian Schroll Date: Sun, 3 Mar 2019 19:14:00 +0100 Subject: [PATCH] some little fixes --- _gen/pytest.ini | 3 ++- boswatch/utils/paths.py | 1 + bw_client.py | 1 + bw_server.py | 1 + module/module.py | 1 - 5 files changed, 5 insertions(+), 2 deletions(-) diff --git a/_gen/pytest.ini b/_gen/pytest.ini index 0aa45e8..c75fe6c 100644 --- a/_gen/pytest.ini +++ b/_gen/pytest.ini @@ -19,6 +19,7 @@ log_file_format=%(asctime)s - %(module)-12s %(funcName)-15s [%(levelname)-8s] %( log_file_date_format=%d.%m.%Y %H:%M:%S #pep8 plugin -pep8ignore = E402, E501 # import not at top +pep8ignore = E402 E501 +# E402 # import not at top # E501 # line too long # pep8maxlinelength = 99 \ No newline at end of file diff --git a/boswatch/utils/paths.py b/boswatch/utils/paths.py index e1c12c5..81185b0 100644 --- a/boswatch/utils/paths.py +++ b/boswatch/utils/paths.py @@ -23,6 +23,7 @@ logging.debug("- %s loaded", __name__) # note searching for root part is not a nice solution atm ROOT_PATH = os.path.dirname(sys.modules['boswatch'].__file__).replace("\\", "/") + "/../" +LOG_PATH = ROOT_PATH + "log/" CONFIG_PATH = ROOT_PATH + "config/" BIN_PATH = ROOT_PATH + "_bin/" TEST_PATH = ROOT_PATH + "test/" diff --git a/bw_client.py b/bw_client.py index a70fd37..9f0cf10 100644 --- a/bw_client.py +++ b/bw_client.py @@ -14,6 +14,7 @@ @author: Bastian Schroll @description: BOSWatch client application """ +# pylint: disable=wrong-import-position from boswatch.utils import paths if not paths.makeDirIfNotExist(paths.LOG_PATH): diff --git a/bw_server.py b/bw_server.py index b350686..2e6800c 100644 --- a/bw_server.py +++ b/bw_server.py @@ -14,6 +14,7 @@ @author: Bastian Schroll @description: BOSWatch server application """ +# pylint: disable=wrong-import-position from boswatch.utils import paths if not paths.makeDirIfNotExist(paths.LOG_PATH): diff --git a/module/module.py b/module/module.py index 0e5ae6c..81e7392 100644 --- a/module/module.py +++ b/module/module.py @@ -100,4 +100,3 @@ class Module: """!Called by destruction of the module Must be inherit""" pass -