From 376fe7c694abf322e04c1a2cc6a46c417942a773 Mon Sep 17 00:00:00 2001 From: "mhochsteger@cerbsim.com" Date: Fri, 11 Feb 2022 18:39:48 +0100 Subject: [PATCH] fix sys import in __main__.py --- python/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/__main__.py b/python/__main__.py index 00ecb5c9..123ae034 100644 --- a/python/__main__.py +++ b/python/__main__.py @@ -1,7 +1,7 @@ -import imp, threading +import imp, threading, sys def handle_arguments(): - import sys, __main__ + import __main__ argv = sys.argv if len(argv)>1 and argv[1].endswith(".py"): with open(argv[1]) as pyfile: