]> Git Repo - pico-vscode.git/commitdiff
Use POSIX paths for compiler and debuger on Windows
authorpaulober <[email protected]>
Fri, 3 Nov 2023 12:25:49 +0000 (13:25 +0100)
committerpaulober <[email protected]>
Fri, 3 Nov 2023 12:25:49 +0000 (13:25 +0100)
Signed-off-by: paulober <[email protected]>
scripts/pico_project.py

index da218534845987308d90864106358582e84b9abf..f283ad6cc69779a471f968d74562dd627ba6c335 100644 (file)
@@ -1164,11 +1164,11 @@ def generateProjectFiles(projectPath, projectName, sdkPath, projects, debugger,
     os.chdir(projectPath)
 
     debugger = debugger_config_list[debugger]
-    gdbPath =  Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb") if isWindows else "gdb-multiarch"
+    gdbPath =  Path(codeToolchainPath(toolchainVersion)+"/bin/arm-none-eabi-gdb").as_posix() if isWindows else "gdb-multiarch"
     # Need to escape windows files paths backslashes
     # TODO: env in currently not supported in compilerPath var
     #cPath = f"${{env:PICO_TOOLCHAIN_PATH_{envSuffix}}}" + os.path.sep + os.path.basename(str(compilerPath).replace('\\', '\\\\' ))
-    cPath = str(compilerPath).replace('\\', '\\\\' )
+    cPath = compilerPath.as_posix()
 
     for p in projects :
         if p == 'vscode':
This page took 0.032853 seconds and 4 git commands to generate.