Skip to content

Commit ad33ec7

Browse files
committed
use env variables instead of config.toml
1 parent ac3243a commit ad33ec7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/config.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
import tomllib
1+
import os
22

3-
with open("config.toml", "rb") as fd:
4-
conf = tomllib.load(fd)
3+
# with open("config.toml", "rb") as fd:
4+
# conf = tomllib.load(fd)
5+
6+
conf = {
7+
"pretalx-token": os.environ["PRETALX_TOKEN"],
8+
}

0 commit comments

Comments
 (0)