Skip to content

Commit

Permalink
fixed bug where windows could not create folder for save state, and b…
Browse files Browse the repository at this point in the history
…umped to 0.3.1
  • Loading branch information
Nick-Gottschlich committed Nov 16, 2018
1 parent 9722bf8 commit 7f38a4b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
executables = [Executable('social_amnesia.py', base=base)]

setup(name=app_name,
version='0.3.0',
version='0.3.1',
description=app_description,
options={'build_exe': build_exe_options},
executables=executables)
4 changes: 4 additions & 0 deletions social_amnesia.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@

USER_HOME_PATH = os.path.expanduser('~')

config_path = Path(f'{os.path.expanduser("~")}/.config')
if not os.path.exists(config_path):
os.makedirs(config_path)

reddit_state_file_path = Path(f'{os.path.expanduser("~")}/.config/reddit_state.db')
reddit_state = shelve.open(str(reddit_state_file_path))

Expand Down

0 comments on commit 7f38a4b

Please sign in to comment.