Bug 845089 - Followup: Handle Windows paths when detecting external source directories; r=khuey

This is related to work that landed in part 20 of bug 784841.
This commit is contained in:
Gregory Szorc 2013-02-28 14:25:10 -08:00
Родитель b7f3d9ed52
Коммит 1d62e7e30f
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -118,11 +118,14 @@ class MozbuildSandbox(Sandbox):
self.config = config
topobjdir = os.path.abspath(config.topobjdir)
topsrcdir = config.topsrcdir
if not path.startswith(topsrcdir):
norm_topsrcdir = os.path.normpath(topsrcdir)
if not path.startswith(norm_topsrcdir):
external_dirs = config.substs.get('EXTERNAL_SOURCE_DIR', '').split()
for external in external_dirs:
external = os.path.normpath(external)
if not os.path.isabs(external):
external = os.path.join(config.topsrcdir, external)