diff options
author | Yongqin Liu <yongqin.liu@linaro.org> | 2020-02-27 21:53:42 +0800 |
---|---|---|
committer | Yongqin Liu <yongqin.liu@linaro.org> | 2020-02-27 21:53:42 +0800 |
commit | 11c79a94296269718741276155cc18a424df9d6c (patch) | |
tree | 971ddbdc73744c3d1b99a3dc09b930e6ca1fd79a | |
parent | 771dd673bda2cf9edb3a6e5fb3ce9ae148120574 (diff) |
lcr/settings.py: os.path.join parameters should not have '/' started
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
-rw-r--r-- | lcr/settings.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcr/settings.py b/lcr/settings.py index 6ab9822..54ddeae 100644 --- a/lcr/settings.py +++ b/lcr/settings.py @@ -17,7 +17,7 @@ import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) DATA_FILE_DIR = os.path.join(BASE_DIR, "datafiles") # Directoy used to store cts vts result files -FILES_DIR = os.path.join(DATA_FILE_DIR, "/files/cts-vts") +FILES_DIR = os.path.join(DATA_FILE_DIR, "files/cts-vts") ###################################################################### @@ -225,7 +225,7 @@ LOGGING = { 'logfile': { 'level':'DEBUG', 'class':'logging.handlers.RotatingFileHandler', - 'filename': DATA_FILE_DIR + "/logfiles/logfile", + 'filename': os.path.join(DATA_FILE_DIR, "logfiles/logfile"), 'maxBytes': 50000, 'backupCount': 2, 'formatter': 'standard', |