Skip to content

Commit

Permalink
Merge pull request #2324 from ganga-devs/mesmith75-patch-1
Browse files Browse the repository at this point in the history
Update ganga start for condor fix
  • Loading branch information
mesmith75 authored Apr 16, 2024
2 parents bb00b5b + 24f3e6a commit ce01ff0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bin/ganga
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

from __future__ import print_function
import sys, os
import platform


if 'LBENV_SOURCED' in os.environ.keys():
Expand All @@ -45,7 +46,11 @@ def standardSetup():

#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):
sys.path.insert(0, '/cvmfs/ganga.cern.ch/Ganga/install/miniconda3/envs/ganga/lib/python3.11/site-packages/')
sys.path.insert(0, '/cvmfs/ganga.cern.ch/Ganga/install/micromamba_el9/lib/python3.11/site-packages/')
if 'glibc2.17' in platform.platform():
sys.path.append('/cvmfs/ganga.cern.ch/Ganga/install/condor_install/condor_2_17')
else:
sys.path.append('/cvmfs/ganga.cern.ch/Ganga/install/condor_install/condor_2_34')

#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),
Expand Down

0 comments on commit ce01ff0

Please sign in to comment.