File size: 745 Bytes
ade4f6a
 
 
 
 
b295d06
ade4f6a
 
6b3e951
ade4f6a
 
 
 
6b3e951
 
 
 
ade4f6a
778443c
ade4f6a
 
 
 
 
 
 
 
6b3e951
e4406a3
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
from pathlib import Path
from enum import Enum



PROJECT_DIR = Path(__file__).parent
APP_PATH = Path("/Applications/YoYo Translator.app/Contents/MacOS/YoYo Translator")
APP_LOG = Path('/tmp/translator.log')

CODE_DIR = Path("/Users/jeqin/work/code/Translator")
CODE_PATH = CODE_DIR / "main.py"
CODE_LOG = CODE_DIR / "translator.log"

DEV_DIR = Path("/Users/jeqin/work/code/Translator/python_server")
DEV_PATH = DEV_DIR / "main.py"
DEV_LOG = APP_LOG

DEBUG_PORT = 9222
TEST_DATA = PROJECT_DIR / "test_data"
TEST_AUDIOS_DIR = TEST_DATA / "test_audios"

REPORTS_DIR  = PROJECT_DIR / "reports"
SCREENSHOT_DIR = PROJECT_DIR / "screenshots"

class RunType(Enum):
    code = 0
    electron = 1
    dev = 2
RUN_TYPE = RunType.electron # electron or web