Skip to content

Commit

Permalink
Merge pull request #2326 from ganga-devs/mesmith75-patch-1
Browse files Browse the repository at this point in the history
Update check-new-ganga.py
  • Loading branch information
mesmith75 authored Apr 16, 2024
2 parents ce01ff0 + fee8777 commit d1333f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ganga/GangaRelease/tools/check-new-ganga.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/python
#!/usr/bin/python3
import os
import requests
import commands
import subprocess
import shutil
import glob
msg = ""
Expand All @@ -17,7 +17,7 @@
# Now check if it's installed
if rel_ver not in os.listdir('/cvmfs/ganga.cern.ch/Ganga/install/'):
# we need to install it
msg = commands.getstatusoutput("/home/cvganga/ganga-cvmfs-install.sh %s" % rel_ver)[1]
msg = subprocess.getstatusoutput("/home/cvganga/ganga-cvmfs-install.sh %s" % rel_ver)[1]
shutil.copy2(glob.glob('/cvmfs/ganga.cern.ch/Ganga/install/%s/lib/python3.*/site-packages/ganga/GangaRelease/'
'tools/ganga-cvmfs-install.sh' % rel_ver)[0], os.path.expanduser('~'))
shutil.copy2(glob.glob('/cvmfs/ganga.cern.ch/Ganga/install/%s/lib/python3.*/site-packages/ganga/GangaRelease/'
Expand Down

0 comments on commit d1333f3

Please sign in to comment.