Skip to content

Commit

Permalink
removed conditional from get_routines_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjeffreyz committed May 27, 2022
1 parent 5ef82cc commit 494fcfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/gui/menu/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ def _load_commands():


def get_routines_dir():
target = os.path.join(config.RESOURCES_DIR, 'routines')
if config.bot.module_name is not None:
target = os.path.join(target, config.bot.module_name)
target = os.path.join(config.RESOURCES_DIR, 'routines', config.bot.module_name)
if not os.path.exists(target):
os.makedirs(target)
return target

0 comments on commit 494fcfc

Please sign in to comment.