scons: make things work when EXTRAS is not defined.

--HG--
extra : convert_revision : 83562b55ec099e609c64cd42eb47a8481e4e85e7
This commit is contained in:
Nathan Binkert 2007-07-26 22:45:33 -07:00
parent d4e69c006b
commit cda354b070

View file

@ -436,6 +436,8 @@ all_cpu_list.sort()
default_cpus.sort() default_cpus.sort()
def ExtraPathValidator(key, val, env): def ExtraPathValidator(key, val, env):
if not val:
return
paths = val.split(':') paths = val.split(':')
for path in paths: for path in paths:
path = os.path.expanduser(path) path = os.path.expanduser(path)