(p)
| 81 | |
| 82 | @contextmanager |
| 83 | def add_to_path(p): |
| 84 | import sys |
| 85 | sys.path.append(p) |
| 86 | try: |
| 87 | yield |
| 88 | finally: |
| 89 | sys.path.remove(p) |
| 90 | |
| 91 | if not reload and path in _cached_modules: |
| 92 | return _cached_modules[path] |
no test coverage detected
searching dependent graphs…