mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-30 03:14:22 +00:00
12 lines
330 B
Python
12 lines
330 B
Python
from libmproxy import utils, script
|
|
import glob
|
|
from libmproxy.proxy import config
|
|
import tservers
|
|
|
|
example_dir = utils.Data("libmproxy").path("../examples")
|
|
scripts = glob.glob("%s/*.py" % example_dir)
|
|
|
|
tmaster = tservers.TestMaster(config.ProxyConfig())
|
|
|
|
for f in scripts:
|
|
script.Script(f, tmaster) # Loads the script file. |