Skip to content

Commit

Permalink
Create settings file if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Mar 6, 2017
1 parent df69b29 commit d81e9fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/roam/environ.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def _setup(apppath=None, logo='', title='', **kwargs):
if isinstance(args.config, dict):
roam.config.settings = args.config
else:
if not os.path.exists(settingspath):
roam.config.save(settingspath)
roam.config.load(settingspath)

app = RoamApp(sys.argv, apppath, prefixpath, settingspath, libspath, i18npath, projectroot).init(logo, title)
Expand Down

0 comments on commit d81e9fa

Please sign in to comment.