Create data directory for portable mode

This commit is contained in:
Manuel Cortez 2018-04-01 04:47:47 -05:00
parent 2c9486fc2d
commit 0e56f681ab

View File

@ -13,4 +13,6 @@ def setup():
paths.prepare_app_data_path("musicDL") paths.prepare_app_data_path("musicDL")
data_directory = paths.app_data_path("musicDL") data_directory = paths.app_data_path("musicDL")
else: else:
data_directory = paths.app_path() data_directory = os.path.join(paths.app_path(), "data")
if os.path.exists(data_directory) == False:
os.mkdir(data_directory)