Sublime Forum

Is there a way to make build variables return Linux path even if on Windows?

#1

By “build variables” I mean things like $file_path, $folder, etc

One of my build system doesn’t work very well with windows path… :sweat:

0 Likes

#2

What do you expect a “Linux path” to look like on windows?

Alas, no, but you could wrap the build in a script to modify the paths and then forward those to your actual build script.

0 Likes

#3

or use regex replacements / snippet substitutions in your build system to make the path separator changes

1 Like

#4

Well, I’m only using relative paths so just swap out the slashes will be fine…

Thanks guys, I’ve reported the bug elsewhere and it seems we are going to fix the source problem, the tool should work with Windows paths.

0 Likes

#5

You could use normpath

0 Likes