diff --git a/experimentlib.py b/experimentlib.py index 6cbbf24..1cbf8cf 100644 --- a/experimentlib.py +++ b/experimentlib.py @@ -118,13 +118,15 @@ # and it also makes other things easier for developers, such as using ipython's # tab completion and not causing unexpected imports if someone using this # module decides to use "from experimentlib import *" -import repyimporter - import fastnmclient -repytime = repyimporter.import_repy_module("time") -rsa = repyimporter.import_repy_module("rsa") -parallelize = repyimporter.import_repy_module("parallelize") -advertise = repyimporter.import_repy_module("advertise") + +from repyportability import * +add_dy_support(locals()) + +repytime = dy_import_module('time.r2py') +parallelize = dy_import_module('parallelize.r2py') +rsa = dy_import_module('rsa.r2py') +advertise = dy_import_module('advertise.r2py') # The maximum number of node locations to return from a call to lookup_node_locations. max_lookup_results = 1024 * 1024 diff --git a/scripts/config_build.txt b/scripts/config_build.txt index 583043b..dcacf97 100644 --- a/scripts/config_build.txt +++ b/scripts/config_build.txt @@ -7,3 +7,4 @@ DEPENDENCIES/common/* # Tests test DEPENDENCIES/utf/* test tests/* +test examples/*