summaryrefslogtreecommitdiff
path: root/realtime/realtime.py
diff options
context:
space:
mode:
Diffstat (limited to 'realtime/realtime.py')
-rwxr-xr-xrealtime/realtime.py3
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()