mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Better path escaping
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
VERSION = (3, 4, "0b7")
|
||||
VERSION = (3, 4, "0b8")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -12,7 +12,7 @@
|
||||
% end
|
||||
"includePath": [
|
||||
% for include in includes:
|
||||
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"{{include.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
% end
|
||||
""
|
||||
],
|
||||
@ -21,7 +21,7 @@
|
||||
"databaseFilename": "",
|
||||
"path": [
|
||||
% for include in includes:
|
||||
"{{include.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"{{include.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
% end
|
||||
""
|
||||
]
|
||||
|
@ -7,8 +7,8 @@
|
||||
"request": "launch",
|
||||
"cwd": "${workspaceRoot}",
|
||||
"name": "PlatformIO Debugger",
|
||||
"target": "{{prog_path.replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('"', '\\"').replace('\\\\', '/').replace('\\', '/')}}",
|
||||
"target": "{{prog_path.replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
"gdbpath": "{{join(dirname(platformio_path), "piodebuggdb").replace('\\\\', '/').replace('\\', '/').replace('"', '\\"')}}",
|
||||
"autorun": [ "source .pioinit" ]
|
||||
}
|
||||
]
|
||||
|
Reference in New Issue
Block a user