fixed bug introduced when porting to py3
[plcapi.git] / plcsh
diff --git a/plcsh b/plcsh
index 6b07619..15a42a5 100755 (executable)
--- a/plcsh
+++ b/plcsh
@@ -87,7 +87,7 @@ if args:
         path = os.path.dirname(os.path.abspath(script))
         sys.path.append(path)
         with open(script) as feed:
-            exec(script.read())
+            exec(feed.read())
 
 # Otherwise, run an interactive shell environment
 else: