From 06500c2cd6218d364f7410996b2aacfae5982200 Mon Sep 17 00:00:00 2001 From: Michael Denkowski Date: Tue, 17 Sep 2013 22:23:39 -0700 Subject: Open stream to state file --- realtime/realtime.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'realtime') 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() -- cgit v1.2.3