Skip to content

Commit

Permalink
Allow existing directories
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenly committed Nov 27, 2023
1 parent 713ceea commit 2bce7b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions script/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
print("Permission error, continuing...")

# create directories
os.mkdir(os.getcwd().replace("\\script", "\\out"))
os.mkdir(os.getcwd().replace("\\script", "\\out\\com.mackenly.simpleiconsstreamdeck.sdIconPack"))
os.mkdir(os.getcwd().replace("\\script", "\\out\\com.mackenly.simpleiconsstreamdeck.sdIconPack\\icons"))
os.makedirs(os.getcwd().replace("\\script", "\\out"), exist_ok=True)
os.makedirs(os.getcwd().replace("\\script", "\\out\\com.mackenly.simpleiconsstreamdeck.sdIconPack"), exist_ok=True)
os.makedirs(os.getcwd().replace("\\script", "\\out\\com.mackenly.simpleiconsstreamdeck.sdIconPack\\icons"), exist_ok=True)
print("Created directories.")

# copy the license from the license template
Expand Down

0 comments on commit 2bce7b5

Please sign in to comment.