We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab76956 commit e665892Copy full SHA for e665892
FWCore/ParameterSet/python/Config.py
@@ -52,7 +52,7 @@ def checkImportPermission(minLevel: int = 2, allowedPatterns = []):
52
import os
53
54
ignorePatterns = ['FWCore/ParameterSet/Config.py', 'FWCore/ParameterSet/python/Config.py','<string>','<frozen ']
55
- 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, '')]
56
57
# Filter the stack to things in CMSSWPath and not in ignorePatterns
58
trueStack = []
0 commit comments