Collective PDF rendering environment (work-in-progress)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
708 B

import os
from dotenv import load_dotenv
# Load environment variables from the .env file
# Bind them to Python variables
PORTNUMBER = int(os.environ.get('OCTOMODE_PORTNUMBER', 5001))
PAD_URL = os.environ.get('OCTOMODE_PAD_URL', '')
PAD_API_URL = os.environ.get('OCTOMODE_PAD_API_URL', '')
PAD_API_KEY = os.environ.get('OCTOMODE_PAD_API_KEY', '')
# Check if API key is provided
if not PAD_API_KEY or PAD_API_KEY == "XXX":
print("error: you must provide a value for OCTOMODE_PAD_API_KEY")
print("error: e.g. export OCTOMODE_PAD_API_KEY=...")