In designflow, re-export LD_LIBRARY_PATH only if there is an ALLIANCE_TOP.

This commit is contained in:
Jean-Paul Chaput 2023-06-25 11:53:26 +02:00
parent b8f15a2c8f
commit d019c6aab5
1 changed files with 7 additions and 1 deletions

View File

@ -69,7 +69,13 @@ class ShellEnv ( object ):
self.shellEnv[ 'MBK_CATAL_NAME' ] = env.getCATALOG() self.shellEnv[ 'MBK_CATAL_NAME' ] = env.getCATALOG()
self.shellEnv[ 'RDS_IN' ] = 'gds' self.shellEnv[ 'RDS_IN' ] = 'gds'
self.shellEnv[ 'RDS_OUT' ] = 'gds' self.shellEnv[ 'RDS_OUT' ] = 'gds'
self.shellEnv[ 'ALLIANCE_TOP' ] = ShellEnv.ALLIANCE_TOP if ShellEnv.ALLIANCE_TOP:
self.shellEnv[ 'ALLIANCE_TOP' ] = ShellEnv.ALLIANCE_TOP
libPath = ShellEnv.ALLIANCE_TOP + '/lib'
LD_LIBRARY_PATH = os.environ[ 'LD_LIBRARY_PATH' ]
if LD_LIBRARY_PATH != '':
libPath += ':' + LD_LIBRARY_PATH
self.shellEnv[ 'LD_LIBRARY_PATH' ] = libPath
def export ( self ): def export ( self ):
""" """