(self)
| 86 | |
| 87 | @contextmanager |
| 88 | def python_imports(self): |
| 89 | # Add python path |
| 90 | sys.path.insert(0, self.get_python_packages_path()) |
| 91 | try: |
| 92 | yield |
| 93 | finally: |
| 94 | # Remove python path |
| 95 | sys.path.remove(self.get_python_packages_path()) |
| 96 | |
| 97 | |
| 98 | def get_path(self, *paths): |