.env optional for standalone exporter
This commit is contained in:
parent
a6ea7be6df
commit
b40556cec2
2 changed files with 11 additions and 3 deletions
|
@ -4,9 +4,11 @@ import requests
|
|||
import json
|
||||
from datetime import datetime
|
||||
import argparse
|
||||
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv(os.path.join(os.path.dirname(__file__), '.env'))
|
||||
|
||||
env_file = os.path.join(os.path.dirname(__file__), '.env')
|
||||
if os.path.isfile(env_file):
|
||||
load_dotenv(env_file)
|
||||
|
||||
|
||||
# pagination handling
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue