craftr-build / craftr-build-4.x

Frontend for the Craftr build framework.
https://craftr-build.github.io/craftr/
Other
60 stars 14 forks source link

Relative paths in environment variables not converted correctly #76

Closed NiklasRosenstein closed 8 years ago

NiklasRosenstein commented 8 years ago

Just a reminder so I don't forget about this. When I use

craftr -eb -Dmaxon.c4d.path="..\..\..\Cinema 4D R16 Dev"

It seems like it doesn't properly convert it to an absolute path and the compilation fails due to missing include headers. As opposed to using

craftr -eb -Dmaxon.c4d.path="C:\maxon\Cinema 4D R16 Dev"
NiklasRosenstein commented 8 years ago

Also, _abs_env() splits the PATH environment variable wrong! It uses value.split(path.sep) but it must use path.pathsep instead!