File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Ghidra/Features/PyGhidra/src/main/py/src/pyghidra Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -109,17 +109,6 @@ def create_module(self, spec):
109
109
def exec_module (self , fullname ):
110
110
pass
111
111
112
- class _GhidraBundleFinder (importlib .machinery .PathFinder ):
113
- """ (internal) Used to find modules in Ghidra bundle locations """
114
-
115
- def find_spec (self , fullname , path = None , target = None ):
116
- from ghidra .app .script import GhidraScriptUtil
117
- GhidraScriptUtil .acquireBundleHostReference ()
118
- for directory in GhidraScriptUtil .getEnabledScriptSourceDirectories ():
119
- spec = super ().find_spec (fullname , [directory .absolutePath ], target )
120
- if spec is not None :
121
- return spec
122
- return None
123
112
124
113
@contextlib .contextmanager
125
114
def _plugin_lock ():
@@ -401,9 +390,8 @@ def _setup_java(self, **jpype_kwargs):
401
390
** jpype_kwargs
402
391
)
403
392
404
- # Install hooks into python importlib
393
+ # Install hook into python importlib
405
394
sys .meta_path .append (_PyGhidraImportLoader ())
406
- sys .meta_path .append (_GhidraBundleFinder ())
407
395
408
396
imports .registerDomain ("ghidra" )
409
397
You can’t perform that action at this time.
0 commit comments