Skip to content

Commit

Permalink
removed unused which function in CI scripts (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell authored Jul 24, 2024
1 parent 4c0e08b commit e5cc925
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions tools/ci/gha-install.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,6 @@
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
Expand Down

0 comments on commit e5cc925

Please sign in to comment.