mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-10-12 02:02:27 +00:00
13 lines
296 B
Python
13 lines
296 B
Python
import coverage
|
|
import os
|
|
import sys
|
|
|
|
os.environ.setdefault("COVERAGE_PROCESS_START", ".coveragerc")
|
|
coverage.process_startup()
|
|
|
|
__file__ = os.path.abspath(sys.argv.pop(2))
|
|
with open(__file__) as fp:
|
|
code = compile(fp.read(), __file__, 'exec')
|
|
os.chdir(sys.argv.pop(1))
|
|
exec(code, globals())
|