- IDAPython 1.4.2: should work now with Python 2.7

- Hide the Python plugin from the plugins menu (it already installs the run statement functionality in the File menu)
This commit is contained in:
elias.bachaalany 2010-08-10 11:44:59 +00:00
parent 9858aae998
commit f216eb9a6d
3 changed files with 9 additions and 7 deletions

View File

@ -36,7 +36,7 @@ else:
# IDAPython version # IDAPython version
VERSION_MAJOR = 1 VERSION_MAJOR = 1
VERSION_MINOR = 4 VERSION_MINOR = 4
VERSION_PATCH = 1 VERSION_PATCH = 2
# Determine Python version # Determine Python version
PYTHON_MAJOR_VERSION = int(platform.python_version()[0]) PYTHON_MAJOR_VERSION = int(platform.python_version()[0])

View File

@ -55,6 +55,12 @@ static const char S_IDC_RUNPYTHON_STATEMENT[] = "RunPythonStatement";
static const char S_HOTKEY_RUNSTATEMENT[] = "Alt-8"; static const char S_HOTKEY_RUNSTATEMENT[] = "Alt-8";
static const char S_IDAPYTHON_DATA_NODE[] = "IDAPython_Data"; static const char S_IDAPYTHON_DATA_NODE[] = "IDAPython_Data";
#ifdef PLUGINFIX
#define PLUGIN_FLAGS PLUGIN_FIX
#else
#define PLUGIN_FLAGS 0
#endif
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
// Types // Types
@ -1389,11 +1395,7 @@ void idaapi run(int arg)
plugin_t PLUGIN = plugin_t PLUGIN =
{ {
IDP_INTERFACE_VERSION, IDP_INTERFACE_VERSION,
#ifdef PLUGINFIX PLUGIN_FLAGS | PLUGIN_HIDE, // plugin flags
PLUGIN_FIX, // plugin flags
#else
0, // plugin flags
#endif
init, // initialize init, // initialize
term, // terminate. this pointer may be NULL. term, // terminate. this pointer may be NULL.
run, // invoke plugin run, // invoke plugin

View File

@ -56,7 +56,7 @@ def runscript(script):
# ----------------------------------------------------------------------- # -----------------------------------------------------------------------
def print_banner(): def print_banner():
banner = [ banner = [
"Python %d.%d.%d %s (serial %d) (c) 1990-2010 Python Software Foundation" % sys.version_info, "Python %s " % sys.version,
"IDAPython" + (" 64-bit" if __EA64__ else "") + " v%d.%d.%d %s (serial %d) (c) The IDAPython Team <idapython@googlegroups.com>" % IDAPYTHON_VERSION "IDAPython" + (" 64-bit" if __EA64__ else "") + " v%d.%d.%d %s (serial %d) (c) The IDAPython Team <idapython@googlegroups.com>" % IDAPYTHON_VERSION
] ]
sepline = '-' * (max([len(s) for s in banner])+1) sepline = '-' * (max([len(s) for s in banner])+1)