From 449a46238f8feae60a3750a2368db497b7a4666e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Wed, 8 Feb 2023 12:53:42 -0500 Subject: [PATCH] Make backup settings file automatically when pulling down new project info --- fetch_clients_projects.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fetch_clients_projects.py b/fetch_clients_projects.py index 9372f24..9d4c9d6 100644 --- a/fetch_clients_projects.py +++ b/fetch_clients_projects.py @@ -4,6 +4,10 @@ import urllib.request # Import our local settings management. import settings +# Make backup file +import shutil +shutil.copyfile('settings.ini', 'settings.bak') + # Allow HARVEST_ACCESS_TOKEN etc to be loaded from a .env file. from dotenv import load_dotenv load_dotenv()