Bug 516984 Allow mozmill unit test to work on windows a=NPOTB r=ctalbert

This commit is contained in:
Jeff Hammel 2010-09-21 15:29:59 -07:00
parent d409dac16c
commit 550c921a7a

View File

@ -79,7 +79,10 @@ def main(args=None):
env = os.environ.copy()
env.pop('PYTHONHOME', None)
call([sys.executable, 'virtualenv/virtualenv.py', destination], env=env)
pip = os.path.join(destination, 'bin', 'pip')
if sys.platform.startswith('win'):
pip = os.path.join(destination, 'Scripts', 'pip.exe')
else:
pip = os.path.join(destination, 'bin', 'pip')
call([pip, 'install'] + PACKAGES, env=env)
if __name__ == '__main__':