From 0e56f681ab02a7dc9652fb1a4c5dd1689c71bee1 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Sun, 1 Apr 2018 04:47:47 -0500 Subject: [PATCH] Create data directory for portable mode --- src/storage.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage.py b/src/storage.py index f68971c..e97d9b7 100644 --- a/src/storage.py +++ b/src/storage.py @@ -13,4 +13,6 @@ def setup(): paths.prepare_app_data_path("musicDL") data_directory = paths.app_data_path("musicDL") else: - data_directory = paths.app_path() \ No newline at end of file + data_directory = os.path.join(paths.app_path(), "data") + if os.path.exists(data_directory) == False: + os.mkdir(data_directory) \ No newline at end of file