mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-11 21:50:34 +05:00
fix sys import in __main__.py
This commit is contained in:
parent
2ce4412fb2
commit
376fe7c694
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user