hammem / monarchmoney

Python API for Monarch Money
MIT License
124 stars 24 forks source link

Use explicitly set session_file in save/load_session #84

Closed keegandahm closed 4 months ago

keegandahm commented 4 months ago

Previously, load_session() would always attempt to load the session file from ./.mm/mm_session.pickle, even if the MonarchMoney object was given a different session_file value (e.g., something in ~/.local/state). Additionally, save_session() would always require an explicitly passed session_file.

This PR changes that to instead try to load from and save to self._session_file. If session_file was not explicitly set, then it will still default to the previous behavior.