Commit b678addc authored by Julien Muchembled's avatar Julien Muchembled

[gcc] tolerate paths with trailing / in $PATH

See previous commit.
parent 0803b816
......@@ -61,7 +61,7 @@ init =
for path in os.getenv('PATH', '').split(os.pathsep): # PY3: shutil.which
gcc = os.path.join(path, 'gcc')
if os.access(gcc, os.X_OK) and not os.path.isdir(gcc):
options['prefix'] = os.path.dirname(path)
options['prefix'] = os.path.dirname(os.path.normpath(path))
break
else:
options['prefix'] = self.buildout[options['part']]['location']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment