##// END OF EJS Templates
packagescan can't scan nested packages
Eung-Ju PARK -
r2402:82cef38f default
parent child Browse files
Show More
@@ -65,7 +65,7 b' def scan(libpath,packagename):'
65 65 # Use the package in the build directory
66 66 libpath = os.path.abspath(libpath)
67 67 sys.path.insert(0,libpath)
68 packdir = os.path.join(libpath,packagename)
68 packdir = os.path.join(libpath,packagename.replace('.', '/'))
69 69 # A normal import would not find the package in
70 70 # the build directory. ihook is used to force the import.
71 71 # After the package is imported the import scope for
@@ -56,7 +56,7 b' try:'
56 56 else:
57 57 self.includes = self.includes.split(',')
58 58 mercurial.packagescan.scan(self.build_lib,'mercurial')
59 mercurial.packagescan.scan(self.build_lib,'mercurial/hgweb')
59 mercurial.packagescan.scan(self.build_lib,'mercurial.hgweb')
60 60 mercurial.packagescan.scan(self.build_lib,'hgext')
61 61 self.includes += mercurial.packagescan.getmodules()
62 62 build_exe.finalize_options(self)
General Comments 0
You need to be logged in to leave comments. Login now