Skip to content

Commit

Permalink
print environment details upon stack trace
Browse files Browse the repository at this point in the history
  • Loading branch information
fariss committed Apr 12, 2024
1 parent 6183fa9 commit afd917f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions data/python/jepeval.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,23 @@ def _jepeval(line):

traceback.print_exc()

def log_env_details():
import platform

import jep
from java.lang import System

print(
"Python={python_version}, Arch={arch}, OS={os}, Ghidra={ghidra_version}, Java={java_version}, Ghidrathon=4.0.0, Jep={jep_version}".format(
python_version=platform.python_version(),
arch=System.getProperty("os.arch"),
os=System.getProperty("os.name"),
ghidra_version=getGhidraVersion(),
java_version=System.getProperty("java.version"),
jep_version=jep.__version__,
)
)

log_env_details()

return more_input_needed

0 comments on commit afd917f

Please sign in to comment.