Forked from
gmsh / gmsh
Source project has a limited visibility.
-
Christophe Geuzaine authored
Trying to fix Patrick's problems when launching getdp on Windows... When gmsh is started from the command line on Windows, cygwin does not (for some obscure reason) prepend '/cygdrive/x/' to the path. Since we check for '/cygdrive/' in SystemCall() in order to sanitize the path before passing it to CreateProcess(), the system call fails. I think the right way to deal with this is to actually remove the path change in SystemCall() (since we only change the leading part), and use the official cygwin API to change the path of every piece that will eventually end up in the argument of CreateProcess(). And that's what "FixWindowsPath()" now does...
Christophe Geuzaine authoredTrying to fix Patrick's problems when launching getdp on Windows... When gmsh is started from the command line on Windows, cygwin does not (for some obscure reason) prepend '/cygdrive/x/' to the path. Since we check for '/cygdrive/' in SystemCall() in order to sanitize the path before passing it to CreateProcess(), the system call fails. I think the right way to deal with this is to actually remove the path change in SystemCall() (since we only change the leading part), and use the official cygwin API to change the path of every piece that will eventually end up in the argument of CreateProcess(). And that's what "FixWindowsPath()" now does...