Skip to content

Commit 938a07a

Browse files
authored
Update imports.py
For the love of god why is there sys.path.clear()??? When ImportExport is loaded first to your program for any reason, it breaks EVERYTHING. You cannot import anything else because suddenly there is only RFEM as root... Jesus it took me so long to figure out whats going on...
1 parent 5e3ec53 commit 938a07a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

RFEM/ImportExport/imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
os.path.dirname(__file__),
66
os.pardir)
77
)
8-
sys.path.clear()
8+
99
sys.path.append(PROJECT_ROOT)
1010
from RFEM.initModel import Model
1111
from RFEM import connectionGlobals
@@ -51,4 +51,4 @@ def setSAFSettings(SafConfiguration):
5151
Args:
5252
SafConfiguration (ns0:SafConfiguration) SAF settings obtained by getSAFSettings()
5353
'''
54-
connectionGlobals.client.service.set_saf_settings(SafConfiguration)
54+
connectionGlobals.client.service.set_saf_settings(SafConfiguration)

0 commit comments

Comments
 (0)