Skip to content

Commit a89b1d2

Browse files
authored
Merge pull request #47024 from smuzaffar/use-realpath-cmssw
ParameterSet/Config.py: Use realpath of cmssw area to avoid symlink issue
2 parents cb8c1e8 + c28f551 commit a89b1d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FWCore/ParameterSet/python/Config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def checkImportPermission(minLevel: int = 2, allowedPatterns = []):
5252
import os
5353

5454
ignorePatterns = ['FWCore/ParameterSet/Config.py', 'FWCore/ParameterSet/python/Config.py','<string>','<frozen ']
55-
CMSSWPath = [os.getenv(base) for base in ['CMSSW_BASE', 'CMSSW_RELEASE_BASE', 'CMSSW_FULL_RELEASE_BASE'] if os.getenv(base, '')]
55+
CMSSWPath = [os.path.realpath(os.getenv(base)) for base in ['CMSSW_BASE', 'CMSSW_RELEASE_BASE', 'CMSSW_FULL_RELEASE_BASE'] if os.getenv(base, '')]
5656

5757
# Filter the stack to things in CMSSWPath and not in ignorePatterns
5858
trueStack = []

0 commit comments

Comments
 (0)