Skip to content

Commit

Permalink
Make sure parent directories exist when Pext starts creating its conf…
Browse files Browse the repository at this point in the history
…ig_path
  • Loading branch information
TheLastProject committed Mar 23, 2017
1 parent e939990 commit d6cea16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pext/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1725,9 +1725,9 @@ def main() -> None:
config_retriever = ConfigRetriever()

# Ensure our necessary directories exist
for directory in ['', 'modules', 'module_dependencies', 'profiles', 'profiles/default']:
for directory in ['modules', 'module_dependencies', 'profiles', 'profiles/default']:
try:
os.mkdir(os.path.join(config_retriever.get_setting('config_path'), directory))
os.makedirs(os.path.join(config_retriever.get_setting('config_path'), directory))
except OSError:
# Probably already exists, that's okay
pass
Expand Down

0 comments on commit d6cea16

Please sign in to comment.