Skip to content

Commit

Permalink
patch release build fix: use realpath for import python module
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Dec 12, 2024
1 parent 32f739f commit 91e7bf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SCRAM/pyinit.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from os import environ
from os.path import dirname,sep,join,exists
from os.path import dirname,sep,join,exists,realpath
cmssw_package_name=join(*__file__.split(sep)[-3:-1])
cmssw_base_dir=dirname(__file__.rsplit("/"+cmssw_package_name+"/",1)[0])
cmssw_base_dir=dirname(realpath(__file__).rsplit("/"+cmssw_package_name+"/",1)[0])
__path__.pop()
xdir=join(cmssw_base_dir,'src',cmssw_package_name, 'python')
if exists(xdir): __path__.append(xdir)
Expand Down

0 comments on commit 91e7bf6

Please sign in to comment.