mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-14 10:08:32 +05:00
try to import ngsolve before starting netgen gui
This commit is contained in:
parent
61a462b0be
commit
679fe05d19
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user