-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
executable file
·29 lines (27 loc) · 960 Bytes
/
Copy pathconstants.py
File metadata and controls
executable file
·29 lines (27 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
import platform
from _version import __version__
OWNER = "otf31"
REPOSITORY_NAME = "autofbpost"
EMAIL = "otf31x@outlook.com"
REPOSITORY_URL = f"https://github.com/{OWNER}/{REPOSITORY_NAME}"
GITHUB_RELEASE_API = f"https://api.github.com/repos/{OWNER}/{REPOSITORY_NAME}/releases/latest"
APP_VERSION = __version__
WEBPAGE_URL = "https://autofbpost.sourceforge.net/"
API_URL = "https://automate-facebook-posts-back.onrender.com/"
FACEBOOK_URL = "https://www.facebook.com"
CHROME_BINARY_PATH = (
r"C:\Program Files\Google\Chrome\Application\chrome.exe"
if (platform.system()) == "Windows"
else "/opt/google/chrome/google-chrome"
)
APP_NAME = "autofbpost"
CONFIG_FILE_PATH = "config.json"
HiSTORY_FILE_PATH = "log.csv"
DEFAULT_CONFIG = {
"CHROME_BINARY_PATH": CHROME_BINARY_PATH,
"POSTS_FOLDER_PATH": "",
"HEADLESS": False,
}
SUPPORTED_FB_LANGUAGES = {"en": "English", "es": "Español"}
DEV_MODE = os.getenv("TEXTUAL_DEV") == "1"