diff options
author | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-17 22:23:39 -0700 |
---|---|---|
committer | Michael Denkowski <mdenkows@cs.cmu.edu> | 2013-09-17 22:23:39 -0700 |
commit | afdd521ba4cbcec44b548288918d1517f30260f1 (patch) | |
tree | d9bd0e2991c942d01eb86c0befe851717d1f8e33 /realtime/realtime.py | |
parent | f96397d3a34fd5279c92a21f66cfa7538f60cb52 (diff) |
Open stream to state file
Diffstat (limited to 'realtime/realtime.py')
-rwxr-xr-x | realtime/realtime.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/realtime/realtime.py b/realtime/realtime.py index a6ed1511..3c384fa2 100755 --- a/realtime/realtime.py +++ b/realtime/realtime.py @@ -32,7 +32,8 @@ def main(): try: # Load state if given if args.state: - rtd.load_state(args.state) + with open(args.state) as input: + rtd.load_state(input) # Read lines and commands while True: line = sys.stdin.readline() |