Alt-7 uses runscript() to run scripts

This commit is contained in:
gergely.erdelyi 2010-02-04 20:44:37 +00:00
parent 5ec97ef3aa
commit e1298031ac
2 changed files with 2 additions and 15 deletions

View File

@ -344,18 +344,7 @@ void IDAPython_ScriptBox(void)
pystr = PyObject_CallMethod(scriptbox, "run", "");
if (pystr)
{
/* If the return value is string use it as path */
if (PyObject_TypeCheck(pystr, &PyString_Type))
{
begin_execution();
ExecFile(PyString_AsString(pystr));
end_execution();
}
Py_DECREF(pystr);
}
else
if (!pystr)
{
/* Print the exception info */
if (PyErr_Occurred())

View File

@ -143,9 +143,7 @@ class ScriptBox(Choose):
n = self.choose()
if n > 0:
return self.list[n-1]
else:
return None
runscript(self.list[n-1])
def addscript(self, scriptpath):
self.list.append(scriptpath)