Commit 3f696fc3 authored by Nathaniel Case's avatar Nathaniel Case

execfile() is gone in python3.

parent b3019cac
......@@ -56,7 +56,7 @@ class CodeInjector(object):
# Allow payloads to import modules alongside them
'PyRun_SimpleString("import sys; sys.path.insert(0, \\"%s\\");")' %
os.path.dirname(self.filename),
'PyRun_SimpleString("execfile(\\"%s\\")")' % self.filename,
'PyRun_SimpleString("exec(open(\\"%s\\").read())")' % self.filename,
'PyGILState_Release($1)',
]
run('%sgdb -p %d -batch %s' % (self.gdb_prefix, self.pid,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment