summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qtip/utils/logger_utils.py3
-rw-r--r--tox.ini1
2 files changed, 4 insertions, 0 deletions
diff --git a/qtip/utils/logger_utils.py b/qtip/utils/logger_utils.py
index e8817c3c..d5e76a64 100644
--- a/qtip/utils/logger_utils.py
+++ b/qtip/utils/logger_utils.py
@@ -62,4 +62,7 @@ class QtipLogger(Logger):
file_path = '{}/qtip/logs'.format(os.environ['HOME'])
def __init__(self, logger_name):
+ if not os.path.exists(self.file_path):
+ os.makedirs(self.file_path)
+
super(QtipLogger, self).__init__(logger_name)
diff --git a/tox.ini b/tox.ini
index 0ca99932..19a2a11e 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,6 +18,7 @@ commands=
--basetemp={envtmpdir} \
{posargs}
setenv=
+ HOME = {envtmpdir}
PYTHONPATH = {toxinidir}
[testenv:pep8]