Skip to content

Commit 8073986

Browse files
author
MichalO
committed
getPathToRunningRFEM removed
1 parent 499f7c6 commit 8073986

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

RFEM/initModel.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff 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-
925896
def GetListOfOpenedModels():
926897

927898
connectToServer()

0 commit comments

Comments
 (0)