Skip to content

Commit

Permalink
Create .devdeck dir if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesridgway committed Feb 3, 2021
1 parent d31f0f6 commit ea3298f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/devdeck
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ if __name__ == "__main__":
deck.close()
if len(serial_numbers) > 0:
root.info("Generating a setting file as none exist: %s", settings_filename)
os.makedirs(os.path.join(str(Path.home()), '.devdeck'), exist_ok=True)
DevDeckSettings.generate_default(settings_filename, serial_numbers)

try:
Expand Down

0 comments on commit ea3298f

Please sign in to comment.