create data directory if it does not exist
zenfyr.dev 6 months ago b560b9ed 8dce71f5
··· 42 42 } 43 43 44 44 def execute(data_dir): 45 45 + if not os.path.exists(data_dir): 46 46 + os.makedirs(data_dir) 47 47 + 45 48 settings_path = os.path.join(data_dir, 'settings.json') 46 49 database_path = os.path.join(data_dir, 'data.db') 47 50