mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 04:40: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():
|
def handle_arguments():
|
||||||
import sys, __main__
|
import __main__
|
||||||
argv = sys.argv
|
argv = sys.argv
|
||||||
if len(argv)>1 and argv[1].endswith(".py"):
|
if len(argv)>1 and argv[1].endswith(".py"):
|
||||||
with open(argv[1]) as pyfile:
|
with open(argv[1]) as pyfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user