diff mercurial/packagescan.py @ 2402:82cef38fea56

packagescan can't scan nested packages
author Eung-Ju PARK <eungju@gmail.com>
date Fri, 02 Jun 2006 16:19:47 +0900
parents c4ea7f927dab
children 976b6b2a1613
line wrap: on
line diff
--- a/mercurial/packagescan.py	Sun Jun 04 17:08:02 2006 -0700
+++ b/mercurial/packagescan.py	Fri Jun 02 16:19:47 2006 +0900
@@ -65,7 +65,7 @@
     # Use the package in the build directory
     libpath = os.path.abspath(libpath)
     sys.path.insert(0,libpath)
-    packdir = os.path.join(libpath,packagename)
+    packdir = os.path.join(libpath,packagename.replace('.', '/'))
     # A normal import would not find the package in
     # the build directory. ihook is used to force the import.
     # After the package is imported the import scope for