.env works better when you reference them 🤦‍♂️

This commit is contained in:
Alex 2022-12-06 22:04:39 +13:00
parent ba1ff83cae
commit d168c9ccd6

View file

@ -10,7 +10,13 @@ from dotenv import load_dotenv
load_dotenv() load_dotenv()
# This username is static and doesn't change between printers # This username is static and doesn't change between printers
FTP_SERVER = os.getenv('FTP_SERVER')
FTP_USERNAME = "bblp" FTP_USERNAME = "bblp"
FTP_PASSWORD = os.getenv('FTP_PASSWORD')
MQTT_SERVER = os.getenv('MQTT_SERVER')
DEV_ID = os.getenv('DEV_ID')
DIRECTORY_TO_MONITOR = os.getenv('DIRECTORY_TO_MONITOR')
UPLOADED_FILES_DIRECTORY = os.getenv('UPLOADED_FILES_DIRECTORY')
# Connect to the FTP server # Connect to the FTP server
ftp = ftplib.FTP(FTP_SERVER) ftp = ftplib.FTP(FTP_SERVER)