2014-05-15 12:37:05 +00:00
|
|
|
from libmproxy import utils, script
|
|
|
|
import glob
|
|
|
|
from libmproxy.proxy import config
|
|
|
|
import tservers
|
|
|
|
|
2014-05-15 16:16:42 +00:00
|
|
|
example_dir = utils.Data("libmproxy").path("../examples")
|
|
|
|
scripts = glob.glob("%s/*.py" % example_dir)
|
2014-05-15 12:37:05 +00:00
|
|
|
|
|
|
|
tmaster = tservers.TestMaster(config.ProxyConfig())
|
|
|
|
|
|
|
|
for f in scripts:
|
|
|
|
script.Script(f, tmaster) # Loads the script file.
|