Skip to content

Commit ba4e5c9

Browse files
committed
fixing pytest
1 parent d384fd7 commit ba4e5c9

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

mapmanagercore/logger.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def getLoggerFilePath():
5151
try:
5252
from platformdirs import user_data_dir # to get log path
5353
appDir = user_data_dir(appName)
54+
if not os.path.isdir(appDir):
55+
os.makedirs(appDir, exist_ok=True)
5456
except ImportError:
5557
appDir = os.path.join(os.path.expanduser('~'), '.mapmanager')
5658
os.makedirs(appDir, exist_ok=True)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
'pytest',
3333
'pytest-cov',
3434
'flake8',
35+
'nbformat'
3536
]
3637

3738
devRequirements = [

0 commit comments

Comments
 (0)