Fix the paths on Windows.

This commit is contained in:
Chris Johns 2012-10-31 22:35:28 +11:00
parent a77f784f78
commit 9116797083
2 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,7 @@ defaults = {
'_build': '%{_host}',
'_arch': '%{_host_arch}',
'_sbdir': '',
'_topdir': os.getcwd(),
'_topdir': path.shell(os.getcwd()),
'_configdir': '%{_topdir}/config:%{_sbdir}/config',
'_tardir': '%{_topdir}/tar',
'_sourcedir': '%{_topdir}/sources',

View File

@ -89,8 +89,8 @@ class buildset:
tmpprefix = path.join(tmproot, prefix)
tmpbindir = path.join(tmpprefix, 'bin')
# exporting to the environment
os.environ['SB_TMPPREFIX'] = path.host(tmpprefix)
os.environ['SB_TMPBINDIR'] = path.host(tmpbindir)
os.environ['SB_TMPPREFIX'] = tmpprefix
os.environ['SB_TMPBINDIR'] = tmpbindir
os.environ['PATH'] = path.host(tmpbindir) + os.pathsep + os.environ['PATH']
self._output('path: ' + os.environ['PATH'])
# shell format