-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtst_app.py
25 lines (17 loc) · 899 Bytes
/
tst_app.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
from pathlib import Path
from semver import VersionInfo
from balsa import get_logger
from pyship import __application_name__, APP_DIR_NAME
TST_APP_NAME = "tstpyshipapp"
log = get_logger(__application_name__)
class TstAppDirs:
def __init__(self, target_app_name: str, version: VersionInfo):
self.target_app_name = target_app_name
self.target_app_version = version
self.project_subdir = f"{self.target_app_name}_{str(self.target_app_version)}"
self.project_dir = Path("test_pyship", self.project_subdir).absolute()
self.app_dir = Path(self.project_dir, APP_DIR_NAME, self.target_app_name)
self.cache = Path(self.project_dir, "cache")
self.venv_dir = Path(self.project_dir, "venv")
self.dist_dir = Path(self.project_dir, "dist")
self.launcher_exe_path = Path(self.app_dir, self.target_app_name, f"{TST_APP_NAME}.exe")