Skip to content

Commit

Permalink
fixed issue with folders not being created
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeggiCH committed Oct 29, 2023
1 parent 8cd2aad commit 2848ed2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion TrackMapper.pyw
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,20 @@ def showSettings():
window.close()

def DoSettings():
#assuming write perms
if not isdir(settings['data_path']):
#assuming write perms
os.mkdir(settings['data_path'])

if not isdir(settings['data_path']+'cache'):
os.mkdir(settings['data_path']+'cache')

if not isdir(settings['data_path']+'cache/schweizmobil.ch/'):
os.mkdir(settings['data_path']+'cache/schweizmobil.ch/')

if not isdir(settings['data_path']+'GeoJSON'):
os.mkdir(settings['data_path']+'GeoJSON')

if not isdir(settings['data_path']+'html'):
os.mkdir(settings['data_path']+'html')

# derive the module settings from the main settings
Expand Down

0 comments on commit 2848ed2

Please sign in to comment.