Skip to content

Commit

Permalink
remove check, always try to create directories, makedirs checks already
Browse files Browse the repository at this point in the history
  • Loading branch information
deviantfero committed Sep 9, 2018
1 parent ea56938 commit 39e9be9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions wpgtk/data/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@ def load_sections():


def load_settings():
if not os.path.isdir(FORMAT_DIR):
logging.info('creating dirs...')
os.makedirs(SAMPLE_DIR, exist_ok=True)
os.makedirs(SCHEME_DIR, exist_ok=True)
os.makedirs(FORMAT_DIR, exist_ok=True)
os.makedirs(OPT_DIR, exist_ok=True)
os.makedirs(WALL_DIR, exist_ok=True)
os.makedirs(SAMPLE_DIR, exist_ok=True)
os.makedirs(SCHEME_DIR, exist_ok=True)
os.makedirs(FORMAT_DIR, exist_ok=True)
os.makedirs(OPT_DIR, exist_ok=True)

try:
return load_sections()
Expand Down

0 comments on commit 39e9be9

Please sign in to comment.