refactor: make paths relative to current working directory

- Allows configuration files to be placed in separate folders, with paths in config files now relative to the config file's location.
- Added `cd /d "%~dp0"` at the beginning of the `.bat` template to ensure paths are based on the script's location, enhancing portability and consistency.
This commit is contained in:
Gatsby Van
2024-11-06 00:32:04 +08:00
parent 94aea3524e
commit caa636018b
2 changed files with 4 additions and 2 deletions
+2
View File
@@ -1,4 +1,6 @@
@echo off
cd /d "%~dp0"
set "platform=xilinx"
set "platform_ver=2019.1"
set "work_dir=%~dp0build"