diff options
author | Marco Capitani <m.capitani@nextworks.it> | 2018-03-26 13:01:55 +0200 |
---|---|---|
committer | Marco Capitani <m.capitani@nextworks.it> | 2018-03-26 15:47:24 +0200 |
commit | f4eada17dffbeba60a95cf77e7f946af5b351556 (patch) | |
tree | 2e8eb7acae1fe09fa0836268e7e6e711e32413b4 /examples | |
parent | 75aacd73e2492e521c5c5af2290118d0c185c78c (diff) | |
download | rumba-f4eada17dffbeba60a95cf77e7f946af5b351556.tar.gz rumba-f4eada17dffbeba60a95cf77e7f946af5b351556.zip |
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.
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/script-example.py | 6 |
1 files changed, 5 insertions, 1 deletions
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() |