Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Commit 58b41b4

Browse files
author
elias.bachaalany
committed
- 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)
1 parent 3e012f7 commit 58b41b4

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
# IDAPython version
3737
VERSION_MAJOR = 1
3838
VERSION_MINOR = 4
39-
VERSION_PATCH = 1
39+
VERSION_PATCH = 2
4040

4141
# Determine Python version
4242
PYTHON_MAJOR_VERSION = int(platform.python_version()[0])

python.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ static const char S_IDC_RUNPYTHON_STATEMENT[] = "RunPythonStatement";
5555
static const char S_HOTKEY_RUNSTATEMENT[] = "Alt-8";
5656
static const char S_IDAPYTHON_DATA_NODE[] = "IDAPython_Data";
5757

58+
#ifdef PLUGINFIX
59+
#define PLUGIN_FLAGS PLUGIN_FIX
60+
#else
61+
#define PLUGIN_FLAGS 0
62+
#endif
63+
5864
//-------------------------------------------------------------------------
5965
// Types
6066

@@ -1389,11 +1395,7 @@ void idaapi run(int arg)
13891395
plugin_t PLUGIN =
13901396
{
13911397
IDP_INTERFACE_VERSION,
1392-
#ifdef PLUGINFIX
1393-
PLUGIN_FIX, // plugin flags
1394-
#else
1395-
0, // plugin flags
1396-
#endif
1398+
PLUGIN_FLAGS | PLUGIN_HIDE, // plugin flags
13971399
init, // initialize
13981400
term, // terminate. this pointer may be NULL.
13991401
run, // invoke plugin

python/init.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def runscript(script):
5656
# -----------------------------------------------------------------------
5757
def print_banner():
5858
banner = [
59-
"Python %d.%d.%d %s (serial %d) (c) 1990-2010 Python Software Foundation" % sys.version_info,
59+
"Python %s " % sys.version,
6060
"IDAPython" + (" 64-bit" if __EA64__ else "") + " v%d.%d.%d %s (serial %d) (c) The IDAPython Team <[email protected]>" % IDAPYTHON_VERSION
6161
]
6262
sepline = '-' * (max([len(s) for s in banner])+1)

0 commit comments

Comments
 (0)