Commits

Tarek Ziadé  committed 2ec4746

Removed spurious UserWarnings. Fixes #134

  • Participants
  • Parent commits 013057c
  • Branches 0.6-maintenance

Comments (0)

Files changed (2)

 * Issue 133: Added --no-find-links to easy_install
 * Added easy_install --user
 * Issue 100: Fixed develop --user not taking '.' in PYTHONPATH into account
+* Issue 134: removed spurious UserWarnings. Patch by VanLindberg
 
 ------
 0.6.10

File pkg_resources.py

             if modname in ('pkg_resources', 'setuptools', 'site'):
                 continue
             fn = getattr(sys.modules[modname], '__file__', None)
-            if fn and normalize_path(fn).startswith(loc):
+            if fn and (normalize_path(fn).startswith(loc) or
+                       fn.startswith(self.location)):
                 continue
             issue_warning(
                 "Module %s was already imported from %s, but %s is being added"