@@ -893,34 +893,34 @@ def GetAppSessionId():
893
893
# Client Application | Get Session ID
894
894
return connectionGlobals .client .service .get_session_id ()
895
895
896
- def getPathToRunningRFEM ():
897
- '''
898
- Find the path to the directory where RFEM is currently running.
899
- This is helpful when using server version, because it can't process relative paths.
900
- '''
901
- import psutil
902
- rstab9 = False
903
- rstab9Server = False
904
- path = ''
905
-
906
- for p in psutil .process_iter (['name' , 'exe' ]):
907
- if p .info ['name' ] == 'RFEM6.exe' :
908
- idx = p .info ['exe' ].find ('bin' )
909
- path = p .info ['exe' ][:idx ]
910
- elif p .info ['name' ] == 'RFEM6Server.exe' :
911
- idx = p .info ['exe' ].find ('bin' )
912
- path = p .info ['exe' ][:idx ]
913
- elif p .info ['name' ] == 'RSTAB9.exe' :
914
- rstab9 = True
915
- elif p .info ['name' ] == 'RSTAB9Server.exe' :
916
- rstab9Server = True
917
-
918
- if rstab9 or rstab9Server :
919
- raise ValueError ('Careful! You are running RFEM Python Client on RSTAB.' )
920
- if not path :
921
- raise ValueError ('Is it possible that RFEM is not runnnning?' )
922
-
923
- return path
896
+ # def getPathToRunningRFEM():
897
+ # '''
898
+ # Find the path to the directory where RFEM is currently running.
899
+ # This is helpful when using server version, because it can't process relative paths.
900
+ # '''
901
+ # import psutil
902
+ # rstab9 = False
903
+ # rstab9Server = False
904
+ # path = ''
905
+
906
+ # for p in psutil.process_iter(['name', 'exe']):
907
+ # if p.info['name'] == 'RFEM6.exe':
908
+ # idx = p.info['exe'].find('bin')
909
+ # path = p.info['exe'][:idx]
910
+ # elif p.info['name'] == 'RFEM6Server.exe':
911
+ # idx = p.info['exe'].find('bin')
912
+ # path = p.info['exe'][:idx]
913
+ # elif p.info['name'] == 'RSTAB9.exe':
914
+ # rstab9 = True
915
+ # elif p.info['name'] == 'RSTAB9Server.exe':
916
+ # rstab9Server = True
917
+
918
+ # if rstab9 or rstab9Server:
919
+ # raise ValueError('Careful! You are running RFEM Python Client on RSTAB.')
920
+ # if not path:
921
+ # raise ValueError('Is it possible that RFEM is not runnnning?')
922
+
923
+ # return path
924
924
925
925
def GetListOfOpenedModels ():
926
926
0 commit comments