| 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 |