-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsecrets.py
33 lines (26 loc) · 998 Bytes
/
secrets.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from dotenv import load_dotenv
from smartfit_booking.logger import logger
import os
ENV = os.environ.get('ENV')
if ENV == 'production':
dotenv_path = '.env'
logger.info('Using production environment variables')
else:
dotenv_path = '.env.dev'
logger.info('Using development environment variables')
exists = os.path.exists(dotenv_path)
if not exists:
raise Exception('env files do not exist')
load_dotenv(dotenv_path)
DRIVER_PATH = os.environ.get('DRIVER_PATH')
OUTPUT_PATH = os.environ.get('OUTPUT_PATH')
WEBSITE_URL = os.environ.get('WEBSITE_URL')
IDENTIFICATION = os.environ.get('IDENTIFICATION')
PASSWORD = os.environ.get('PASSWORD')
HEADQUARTER_NAME = os.environ.get('HEADQUARTER_NAME')
DESIRED_DATE = os.environ.get('DESIRED_DATE')
DESIRED_TIME = os.environ.get('DESIRED_TIME')
WHATSAPP_URL = os.environ.get('WHATSAPP_URL')
CHAT_NAME = os.environ.get('CHAT_NAME')
PERSON_NAME = os.environ.get('PERSON_NAME')
CHROME_PROFILE_PATH = os.environ.get('CHROME_PROFILE_PATH')