Skip to content

Commit ed6e07c

Browse files
committed
Add settings.py to contain global variables
1 parent 62a8ded commit ed6e07c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/arguments/settings.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
from pathlib import Path
3+
4+
NOTION_URL = "https://www.notion.so/"
5+
LOGIN_PATH = NOTION_URL + "/login"
6+
DATA_DIR = os.environ.get(
7+
"DYNAMIC_DATA_DIR", str(Path(os.path.expanduser("~")).joinpath(".dynamic"))
8+
)
9+
PLAYBOOK_DIR = str(Path(DATA_DIR).joinpath("playbook.json"))
10+
TOKEN_COOKIE_FILE = str(Path(DATA_DIR).joinpath("tokenv2_cookie"))
11+
12+
try:
13+
os.makedirs(DATA_DIR)
14+
except FileExistsError:
15+
pass

0 commit comments

Comments
 (0)