From 9c75281168a24c732f2f29e12d19628c1ca662d7 Mon Sep 17 00:00:00 2001 From: XuefengHuang Date: Fri, 2 Jan 2015 20:52:16 -0500 Subject: [PATCH 1/2] Updated scripts --- scripts/config_build.txt | 1 + 1 file changed, 1 insertion(+) 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/* From 20272c0aabf214d566571b07d8bbad61c348ed22 Mon Sep 17 00:00:00 2001 From: XuefengHuang Date: Fri, 2 Jan 2015 20:55:18 -0500 Subject: [PATCH 2/2] ported to use RepyV2 Port experimentlib.py to use RepyV2 --- experimentlib.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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