diff --git a/setup.py b/setup.py index 71fcc58..df54b9d 100644 --- a/setup.py +++ b/setup.py @@ -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) diff --git a/social_amnesia.py b/social_amnesia.py index efb786c..b6ee783 100644 --- a/social_amnesia.py +++ b/social_amnesia.py @@ -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))