Make it work under the bootstrap dir for directories queries.

This commit is contained in:
Jean-Paul Chaput 2023-04-04 16:13:59 +02:00
parent b7f6af8588
commit e04f6b1cbc
1 changed files with 3 additions and 2 deletions

View File

@ -319,8 +319,9 @@ if __name__ == "__main__":
if os.path.isdir(absLibDir): break
libDir = None
if libDir is None:
print( 'echo "[ERROR] coriolisEnv.py, library directory not found."' )
sys.exit( 1 )
if not options.queryISysRoot and not options.queryInstRoot:
print( 'echo "[ERROR] coriolisEnv.py, library directory not found."' )
sys.exit( 1 )
strippedPath = "%s/bin:%s" % ( coriolisTop, strippedPath )
strippedLibraryPath = "%s:%s" % ( absLibDir , strippedLibraryPath )