(plugin_dir_abs_path)
| 42 | |
| 43 | |
| 44 | def _register_plugin_path(plugin_dir_abs_path): |
| 45 | if not os.path.isdir(plugin_dir_abs_path): |
| 46 | raise Exception( |
| 47 | 'Directory "%s" with plugins doesn\'t exist' % (plugin_dir_abs_path) |
| 48 | ) |
| 49 | |
| 50 | for x in sys.path: |
| 51 | if plugin_dir_abs_path in (x, x + os.sep): |
| 52 | return |
| 53 | sys.path.append(plugin_dir_abs_path) |
| 54 | |
| 55 | |
| 56 | def _get_plugin_module(plugin_file_path): |
no outgoing calls
no test coverage detected