Show More
@@ -1064,11 +1064,7 b' class hginstallscripts(install_scripts):' | |||
|
1064 | 1064 | # absolute path instead |
|
1065 | 1065 | libdir = self.install_lib |
|
1066 | 1066 | else: |
|
1067 | common = os.path.commonprefix((self.install_dir, self.install_lib)) | |
|
1068 | rest = self.install_dir[len(common) :] | |
|
1069 | uplevel = len([n for n in os.path.split(rest) if n]) | |
|
1070 | ||
|
1071 | libdir = uplevel * ('..' + os.sep) + self.install_lib[len(common) :] | |
|
1067 | libdir = os.path.relpath(self.install_lib, self.install_dir) | |
|
1072 | 1068 | |
|
1073 | 1069 | for outfile in self.outfiles: |
|
1074 | 1070 | with open(outfile, 'rb') as fp: |
General Comments 0
You need to be logged in to leave comments.
Login now