Commits

Eli Bendersky committed 93399e3

adding experimental __main__. also, filefinder should not find bad symlinks

Comments (0)

Files changed (4)

+#!/usr/bin/env python
+from psslib.pss import main; main()
+

psslib/filefinder.py

                         continue
                     for filename in files:
                         if self._file_is_found(filename):
-                            yield os.path.join(dirpath, filename)
+                            fullpath = os.path.join(dirpath, filename)
+                            if os.path.exists(fullpath):
+                                yield fullpath
                     if not self.recurse:
                         break
 

test/testdirs/simple_filefinder/file_bad_symlink.c

+/usr/badpath/11223344

test/testdirs/testdir1/file_bad_symlink.c

+/usr/badpath/11223344