Skip to content

Commit e30bc54

Browse files
committed
creating missing data dirs if necessary
1 parent 609cef4 commit e30bc54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pytradelib/settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
LOG_LEVEL = 'info' # debug, info, warning, error or critical
2121

2222

23-
if not os.path.exists(DATA_DIR):
24-
os.mkdir(DATA_DIR)
25-
2623
if not os.path.exists(LOG_DIR):
27-
os.mkdir(LOG_DIR)
24+
os.makedirs(LOG_DIR)
25+
26+
if not os.path.exists(ZIPLINE_CACHE_DIR):
27+
os.makedirs(ZIPLINE_CACHE_DIR)

0 commit comments

Comments
 (0)