From f4eada17dffbeba60a95cf77e7f946af5b351556 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Mon, 26 Mar 2018 13:01:55 +0200 Subject: storyboard: make Script class private The Script class has been made private as the script field of the Storyboard class. All script-related functions are now accessible as methods of the storyboard class. In other news: Made the script path in script-example.py pwd resilient. --- examples/script-example.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/script-example.py b/examples/script-example.py index 316a1d1..5e14823 100755 --- a/examples/script-example.py +++ b/examples/script-example.py @@ -93,7 +93,11 @@ if __name__ == '__main__': client_a.add_node(node_b) client_b.add_node(node_b) client_c.add_node(node_b) - story.parse_script_file('example-script.rsb') + script_file = os.path.join( + os.path.dirname(__file__), + 'example-script.rsb' + ) + story.parse_script_file(script_file) log.flush_log() with ExperimentManager(exp): exp.swap_in() -- cgit v1.2.3