Return a set containing all existing file system items from sys.path.
()
| 146 | |
| 147 | |
| 148 | def _init_pathinfo(): |
| 149 | """Return a set containing all existing file system items from sys.path.""" |
| 150 | d = set() |
| 151 | for item in sys.path: |
| 152 | try: |
| 153 | if os.path.exists(item): |
| 154 | _, itemcase = makepath(item) |
| 155 | d.add(itemcase) |
| 156 | except TypeError: |
| 157 | continue |
| 158 | return d |
| 159 | |
| 160 | |
| 161 | def addpackage(sitedir, name, known_paths): |
no test coverage detected