fix sys import in __main__.py

This commit is contained in:
mhochsteger@cerbsim.com 2022-02-11 18:39:48 +01:00
parent 2ce4412fb2
commit 376fe7c694

View File

@ -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: