Commits

Ian Bicking  committed a30b44f

Also check that the .egg-info is a directory, as we can't look in files. Should fix http://trac.pythonpaste.org/pythonpaste/ticket/364

  • Participants
  • Parent commits 3804a40

Comments (0)

Files changed (1)

File paste/script/pluginlib.py

         f.write(line)
         f.write('\n')
     f.close()
-    
+
 def find_egg_info_dir(dir):
     while 1:
         try:
             # Probably permission denied or something
             return None
         for fn in filenames:
-            if fn.endswith('.egg-info'):
+            if (fn.endswith('.egg-info')
+                and os.path.isdir(os.path.join(dir, fn))):
                 return os.path.join(dir, fn)
         parent = os.path.dirname(dir)
         if parent == dir: