Re: msysGit and SCons: broken?
- From
- Dirk Süsserott <newsletter@dirk.my1.cc>
- Date
- Aug 13, 2009, 19:32 UTC
- Message-ID
- <4A846A5A.4000000@dirk.my1.cc>
- In-Reply-To
- <4A7B32EA.2080505@dirk.my1.cc>
Am 06.08.2009 21:45 schrieb Dirk Süsserott:
Show 10 quoted lines
> Am 04.08.2009 00:13 schrieb Johannes Schindelin: >> On Mon, 3 Aug 2009, Dirk Süsserott wrote: >> >> How does your SCons call relate to Git? Do you call it from the Git >> Bash? Do you call it from cmd.exe directly? Is Git/bash in your PATH? > > I used to call SCons from Git-bash and it worked. After Git's upgrade > (or some other unknown change) I did the same and it didn't work from > Git-bash, but it still worked from cmd.exe. Git-bash ist not in my PATH > when I run cmd.exe.
If someone had the same or a similar problem: I tracked it down and found a solution. The problem was that I tried to run a Windows program from git-bash. The Windows program then faces the bash's $PATH with a different separator (':' vs. ';') and a different root directory ('/c/' vs. 'C:/'). Scons tries to split the PATH apart to figure out which tools are installed. ActivePython thinks ';' is the right separator and then fails. Thus, I wrote a wrapper to call Scons after manipulating the $PATH variable by first exchanging the separator and then exchanging '/c/' with 'c:/'.
Funny, though, that my things worked a few weeks ago *without* this wrapper. Dunno why. At least it hasn't anything to do with my Git update. I proved that by installing earlier versions of Git.
Dirk