Make backup settings file automatically when pulling down new project info
This commit is contained in:
parent
7e2175860f
commit
449a46238f
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue