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.
Previously,
load_session()
would always attempt to load the session file from./.mm/mm_session.pickle
, even if theMonarchMoney
object was given a differentsession_file
value (e.g., something in~/.local/state
). Additionally,save_session()
would always require an explicitly passedsession_file
.This PR changes that to instead try to load from and save to
self._session_file
. Ifsession_file
was not explicitly set, then it will still default to the previous behavior.