File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -893,35 +893,6 @@ def GetAppSessionId():
893893 # Client Application | Get Session ID
894894 return connectionGlobals .client .service .get_session_id ()
895895
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-
925896def GetListOfOpenedModels ():
926897
927898 connectToServer ()
You can’t perform that action at this time.
0 commit comments