Compare commits
2 commits
2d244f0631
...
c6861c7d51
Author | SHA1 | Date | |
---|---|---|---|
Edward Betts | c6861c7d51 | ||
Edward Betts | a17f97e953 |
|
@ -1,7 +1,6 @@
|
||||||
import configparser
|
import configparser
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import sys
|
|
||||||
import typing
|
import typing
|
||||||
import warnings
|
import warnings
|
||||||
from datetime import date, datetime, timedelta, timezone
|
from datetime import date, datetime, timedelta, timezone
|
||||||
|
@ -16,7 +15,7 @@ import pandas
|
||||||
import pytz
|
import pytz
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
from agenda import spacexdata
|
# from agenda import spacexdata
|
||||||
|
|
||||||
warnings.simplefilter(action="ignore", category=FutureWarning)
|
warnings.simplefilter(action="ignore", category=FutureWarning)
|
||||||
|
|
||||||
|
@ -38,8 +37,12 @@ now_utc = datetime.now(timezone.utc)
|
||||||
next_us_presidential_election = date(2024, 11, 5)
|
next_us_presidential_election = date(2024, 11, 5)
|
||||||
next_uk_general_election = date(2024, 5, 2)
|
next_uk_general_election = date(2024, 5, 2)
|
||||||
|
|
||||||
|
config_filename = os.path.join(os.path.dirname(__file__), "..", "config")
|
||||||
|
|
||||||
|
assert os.path.exists(config_filename)
|
||||||
|
|
||||||
config = configparser.ConfigParser()
|
config = configparser.ConfigParser()
|
||||||
config.read(os.path.join(os.path.dirname(__file__), "..", "config"))
|
config.read(config_filename)
|
||||||
|
|
||||||
access_key = config.get("exchangerate", "access_key")
|
access_key = config.get("exchangerate", "access_key")
|
||||||
data_dir = config.get("data", "dir")
|
data_dir = config.get("data", "dir")
|
||||||
|
|
Loading…
Reference in a new issue