Robotics
code
File size: 304 Bytes
d0ac577
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# __init__.py

from importlib import resources
try:
  import tomllib
except ModuleNotFoundError:
  import tomli as tomllib

# Version of the package
__version__ = "1.0.0"

# Read URL of the feed from config file
_cfg = tomllib.loads(resources.read_text("reader", "config.toml"))
URL = _cfg["feed"]["url"]