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 | 06500c2cd6218d364f7410996b2aacfae5982200 (patch) | |
tree | 76a08dbf8a8d0ed45fa83a2eddc07723a21e3f44 | |
parent | 6d427339b45f8aa74410437f91b5a01afc824120 (diff) |
Open stream to state file
-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() |