bug 1124192 - Fix PATH winding up as unicode when using activate_virtualenv. r=gps

This commit is contained in:
Ted Mielczarek 2015-01-26 13:43:01 -05:00
parent 3dbcd679e4
commit ae74c94379

View File

@ -395,6 +395,8 @@ class VirtualenvManager(object):
"""
execfile(self.activate_path, dict(__file__=self.activate_path))
if isinstance(os.environ['PATH'], unicode):
os.environ['PATH'] = os.environ['PATH'].encode('utf-8')
def install_pip_package(self, package):
"""Install a package via pip.