Support for nightly build in booststrap/crlenv.py.

This commit is contained in:
Jean-Paul Chaput 2023-01-02 11:47:45 +01:00
parent e590400ebb
commit 100342e640
1 changed files with 7 additions and 4 deletions

View File

@ -126,6 +126,7 @@ def setupPaths ( verbose ):
osDir = Path( osDir )
homeDir = Path( os.environ['HOME'] )
buildType = Path( 'Release.Debug' if useDebug else 'Release.Shared' )
scriptPath = Path( __file__ ).resolve()
topDirs = []
if 'CORIOLIS_TOP' in os.environ:
topDirs += [ Path( os.environ['CORIOLIS_TOP'] ) ]
@ -133,6 +134,8 @@ def setupPaths ( verbose ):
, Path( '/soc/coriolis2' )
, Path( '/usr' )
]
if scriptPath.match('nightly/coriolis-2.x'):
topDirs.append( homeDir / 'nightly' / 'coriolis-2.x' / osDir / buildType / 'install' )
if verbose:
print( ' o Self locating Coriolis:' )
coriolisTop = None