(with_keys=False)
| 206 | |
| 207 | |
| 208 | def iter_py_modules(with_keys=False): |
| 209 | for key, path in iter_keys(b'resfs/src/resfs/file/' + py_prefix): |
| 210 | if path.endswith(b'.py'): # It may also end with '.pyc'. |
| 211 | mod = _s(path[:-3].replace(b'/', b'.')) |
| 212 | if with_keys: |
| 213 | yield key, mod |
| 214 | else: |
| 215 | yield mod |
| 216 | |
| 217 | |
| 218 | def py_src_key(filename): |