Fixed an issue when the "$PROJECT_DIR" gets the full path to "platformio.ini", not the directory name // Resolve #4086

This commit is contained in:
Ivan Kravets
2021-10-22 19:13:24 +03:00
parent e3c6237430
commit 8d8b0807e2
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ class DebugConfigBase: # pylint: disable=too-many-instance-attributes
patterns = {
"PLATFORMIO_CORE_DIR": get_project_core_dir(),
"PYTHONEXE": proc.get_pythonexe_path(),
"PROJECT_DIR": self.project_config.path,
"PROJECT_DIR": os.getcwd(),
"PROG_PATH": program_path,
"PROG_DIR": os.path.dirname(program_path),
"PROG_NAME": os.path.basename(os.path.splitext(program_path)[0]),