dotenv_init.py 283 B

1234567891011121314
  1. # from dotenv import load_dotenv
  2. try:
  3. from dotenv import load_dotenv
  4. except ImportError:
  5. print(
  6. "Missing core packages (dotenv), the app has not been installed successfully."
  7. )
  8. exit(1)
  9. def init():
  10. load_dotenv(dotenv_path=".env.user")
  11. load_dotenv()