Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
m4rkw committed Jul 13, 2024
1 parent 55beca4 commit f91cf6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions monzo_utils/lib/monzo_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,12 @@ def load_config(self):

self.config_path = f"{homedir}/.monzo"

os.chdir(self.config_path)
if os.path.exists(self.config_path):
os.chdir(self.config_path)

if not os.path.exists(self.config_path):
if not os.path.exists(self.config_path):
os.mkdir(self.config_path, 0o755)

account_config_file = f"{self.config_path}/{self.account_name}.yaml"
account_config_file = f"{self.config_path}/{self.account_name}.yaml"
else:
account_config_file = f"{self.account_name}.yaml"

if not os.path.exists(account_config_file):
sys.stderr.write(f"Cannot find account config file: {account_config_file}\n")
Expand Down

0 comments on commit f91cf6b

Please sign in to comment.