Skip to content

Commit

Permalink
Merge pull request #46955 from smuzaffar/fix-46937
Browse files Browse the repository at this point in the history
Added CMSSW_FULL_RELEASE_BASE in to valid cmssw import paths
  • Loading branch information
cmsbuild authored Dec 16, 2024
2 parents 485ae1b + e665892 commit 3c8bc13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FWCore/ParameterSet/python/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def checkImportPermission(minLevel: int = 2, allowedPatterns = []):
import os

ignorePatterns = ['FWCore/ParameterSet/Config.py', 'FWCore/ParameterSet/python/Config.py','<string>','<frozen ']
CMSSWPath = [os.environ['CMSSW_BASE'],os.environ['CMSSW_RELEASE_BASE']]
CMSSWPath = [os.getenv(base) for base in ['CMSSW_BASE', 'CMSSW_RELEASE_BASE', 'CMSSW_FULL_RELEASE_BASE'] if os.getenv(base, '')]

# Filter the stack to things in CMSSWPath and not in ignorePatterns
trueStack = []
Expand Down

0 comments on commit 3c8bc13

Please sign in to comment.