mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
removed unused which function in CI scripts (#3095)
This commit is contained in:
parent
4c0e08bae8
commit
e5cc925db3
1 changed files with 0 additions and 16 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue