-
Notifications
You must be signed in to change notification settings - Fork 5
/
sfvip_all.py
38 lines (29 loc) · 1.07 KB
/
sfvip_all.py
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
30
31
32
33
34
35
36
37
38
# nuitka-project: --include-module=mitmproxy_windows
# nuitka-project: --enable-plugin=tk-inter
from src import at_very_last, set_logging_and_exclude
set_logging_and_exclude("ipytv.playlist", "ipytv.channel", "mitmproxy.proxy.server")
if __name__ == "__main__":
from shared import is_py_installer
if is_py_installer():
import multiprocessing
# if it's a subprocess execution will stop here
multiprocessing.freeze_support()
# reduce what's imported in the subprocesses
import logging
import sys
from pathlib import Path
# pylint: disable=ungrouped-imports
from build_config import Build, Github
from shared import LogProcess
from src.sfvip import AppInfo, run_app
# for debug purpose only
if "fakev0" in sys.argv[1:]:
Build.version = "0"
app_dir = Path(__file__).parent
logger = logging.getLogger(__name__)
with LogProcess(logger, "Main"):
run_app(
at_very_last.register,
AppInfo.from_build(Build, Github, app_dir=app_dir),
keep_logs=3 * 2,
)