##// END OF EJS Templates
setup/hg: handle hg being a symlink when appending relative libdir to sys.path...
L. David Baron -
r12805:cae1c187 stable
parent child Browse files
Show More
@@ -14,7 +14,8 b" libdir = '@LIBDIR@'"
14
14
15 if libdir != '@' 'LIBDIR' '@':
15 if libdir != '@' 'LIBDIR' '@':
16 if not os.path.isabs(libdir):
16 if not os.path.isabs(libdir):
17 libdir = os.path.join(os.path.dirname(__file__), libdir)
17 libdir = os.path.join(os.path.dirname(os.path.realpath(__file__)),
18 libdir)
18 libdir = os.path.abspath(libdir)
19 libdir = os.path.abspath(libdir)
19 sys.path.insert(0, libdir)
20 sys.path.insert(0, libdir)
20
21
General Comments 0
You need to be logged in to leave comments. Login now