Files
Xilinx-ISE-Build/tools/paths.py
MaxP 2fce367686 Add project configuration and build tools
- Introduced new scripts for project generation and synthesis (dodo.py, generate_prj.py, generate_scr.py, run_xst.py).
- Implemented configuration parsing for VHDL sources and project settings (config.py).
- Added default configuration values (defaults.py).
- Updated .gitignore to include additional file types.
- Created test cases for project generation and configuration parsing (test_generate_prj.py, test_generate_scr.py, test_project_cfg.py).
2025-04-20 11:32:37 +00:00

22 lines
532 B
Python

import os
from pathlib import Path
import sys
# Ermittle absoluten Pfad dieser Datei
HERE = Path(__file__).resolve()
# Gehe zurück von tools/ → build/ → Projekt-Root
ROOT = HERE.parent.parent.parent
# Abgeleitete Pfade
BUILD = ROOT / "build"
WORKING = BUILD / "working"
REPORTS = BUILD / "reports"
# Relativer Pfad von WORKING zurück zur Projektwurzel
REL_FROM_WORKING_TO_ROOT = Path(os.path.relpath(ROOT, WORKING))
# Standard-Konfigurationsdateien
PROJECT_CFG = ROOT / "project.cfg"
VHDL_LS_TOML = ROOT / "vhdl_ls.toml"