removed unused which function in CI scripts (#3095)

This commit is contained in:
Jonathan Shimwell 2024-07-24 03:42:03 +01:00 committed by GitHub
parent 4c0e08bae8
commit e5cc925db3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,22 +2,6 @@ import os
import shutil
import subprocess
def which(program):
def is_exe(fpath):
return os.path.isfile(fpath) and os.access(fpath, os.X_OK)
fpath, fname = os.path.split(program)
if fpath:
if is_exe(program):
return program
else:
for path in os.environ["PATH"].split(os.pathsep):
path = path.strip('"')
exe_file = os.path.join(path, program)
if is_exe(exe_file):
return exe_file
return None
def install(omp=False, mpi=False, phdf5=False, dagmc=False, libmesh=False, ncrystal=False):
# Create build directory and change to it