Skip to content

Commit

Permalink
Update ganga
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmith75 authored Jan 11, 2024
1 parent 9f2f737 commit 2c6c942
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions bin/ganga
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ def standardSetup():
gangaDir = os.path.join(os.path.dirname(exeDir), 'ganga' )
sys.path.insert(0, gangaDir)

#On CVMFS we need to point to the site-packages directory as we don't start the virtualenv
if exeDir.startswith('/cvmfs/ganga.cern.ch', 0, 20):
envDir = exeDir[:-3]
envDir = os.path.join(envDir, 'lib/python3.8/site-packages')
sys.path.insert(0, envDir)

#This function is needed to add the individual ganga modules to the sys path - awful hack but saved rewriting all the code. This is needed for pip installs
pathsToAdd = filter(lambda p : 'ganga' in os.listdir(p),
filter(lambda x : not x=='' and os.path.isdir(x), sys.path))
Expand Down

0 comments on commit 2c6c942

Please sign in to comment.