From fee87771d5672274073999e16de092e15a62a4fa Mon Sep 17 00:00:00 2001 From: Mark Smith Date: Tue, 16 Apr 2024 10:38:41 +0200 Subject: [PATCH] Update check-new-ganga.py --- ganga/GangaRelease/tools/check-new-ganga.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ganga/GangaRelease/tools/check-new-ganga.py b/ganga/GangaRelease/tools/check-new-ganga.py index 257792465f..9a4428a1e7 100644 --- a/ganga/GangaRelease/tools/check-new-ganga.py +++ b/ganga/GangaRelease/tools/check-new-ganga.py @@ -1,7 +1,7 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os import requests -import commands +import subprocess import shutil import glob msg = "" @@ -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/'