try to import ngsolve before starting netgen gui

This commit is contained in:
mhochsteger 2021-10-28 15:40:54 +02:00 committed by Matthias Hochsteger
parent 61a462b0be
commit 679fe05d19

View File

@ -8,6 +8,10 @@ def handle_arguments():
imp.load_module('__main__', pyfile, argv[1], (".py", "r", imp.PY_SOURCE)) imp.load_module('__main__', pyfile, argv[1], (".py", "r", imp.PY_SOURCE))
def main(): def main():
try:
import ngsolve
except:
pass
from .gui import win from .gui import win
th = threading.Thread(target=handle_arguments) th = threading.Thread(target=handle_arguments)
th.start() th.start()