Make backup settings file automatically when pulling down new project info

This commit is contained in:
benjamin melançon 2023-02-08 12:53:42 -05:00
parent 7e2175860f
commit 449a46238f

View file

@ -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()