You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

paths.py 464B

123456789101112
  1. import os
  2. from pathlib import Path
  3. TOOLS_DIR = Path(__file__).absolute().parent.parent
  4. PROJECT_ROOT = TOOLS_DIR.parent
  5. BUILD_DIR = PROJECT_ROOT / '_build'
  6. PREBUILT_DIR = PROJECT_ROOT / '_prebuilt'
  7. EXE_SUFFIX = '.exe' if os.name == 'nt' else ''
  8. PREBUILT_DDS = (PREBUILT_DIR / 'dds').with_suffix(EXE_SUFFIX)
  9. CUR_BUILT_DDS = (BUILD_DIR / 'dds').with_suffix(EXE_SUFFIX)
  10. EMBEDDED_REPO_DIR = PROJECT_ROOT / 'external/repo'
  11. SELF_TEST_REPO_DIR = BUILD_DIR / '_self-repo'