mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00
Bug 857186: Make virtualenv paths relative. r=gps
This commit is contained in:
parent
315c8e8757
commit
e66babb941
@ -210,7 +210,11 @@ class VirtualenvManager(object):
|
||||
path = os.path.join(self.topsrcdir, package[1])
|
||||
|
||||
with open(os.path.join(python_lib, package[0]), 'a') as f:
|
||||
f.write("%s\n" % path)
|
||||
# This path is relative to the .pth file. Using a
|
||||
# relative path allows the srcdir/objdir combination
|
||||
# to be moved around (as long as the paths relative to
|
||||
# each other remain the same).
|
||||
f.write("%s\n" % os.path.relpath(path, python_lib))
|
||||
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user