mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
Candidate release of source code.
This commit is contained in:
parent
db81e6b3b0
commit
79d8f164f8
12449 changed files with 2800756 additions and 16 deletions
33
Ghidra/Features/Python/python-src/sitecustomize.py
Normal file
33
Ghidra/Features/Python/python-src/sitecustomize.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
"""
|
||||
User-supplied customizations go here.
|
||||
"""
|
||||
|
||||
# nice-to-have: place 'java' and 'ghidra' into the local namespace, so you
|
||||
# can do fun things like "dir(java.lang)"
|
||||
import java
|
||||
import ghidra
|
||||
import __main__
|
||||
__main__.java = java
|
||||
__main__.ghidra = ghidra
|
||||
|
||||
# fix Jython "bug": unknown type 'javainstance' or 'javapackage' even though
|
||||
# that is the type Jython gives us if we ask type(<someObject>) or
|
||||
# type(ghidra) (respectively)
|
||||
import __builtin__
|
||||
import org.python.core
|
||||
# changed by Jim 20090528 for Jython 2.5
|
||||
# not sure why I even put these here... the first one might be troublesome
|
||||
#__builtin__.javainstance = org.python.core.PyJavaInstance
|
||||
#__builtin__.javapackage = org.python.core.PyJavaPackage
|
||||
#__builtin__.javaclass = org.python.core.PyJavaClass
|
||||
__builtin__.javainstance = org.python.core.PyObjectDerived
|
||||
__builtin__.javapackage = org.python.core.PyJavaPackage
|
||||
__builtin__.javaclass = org.python.core.PyJavaType
|
||||
|
||||
# changed by Jim 20090528 for Jython 2.5
|
||||
# REMOVED collections stuff
|
||||
# OOPS still need this
|
||||
import sys
|
||||
|
||||
# Ghidra documentation
|
||||
import ghidradoc
|
Loading…
Add table
Add a link
Reference in a new issue