is_exe = lambda x: os.path.isfile(x) and os.access(x, os.X_OK)
def cpuwatch_execv(args: list[str]):
"""os.execv a command with cpuwatch"""
cmd = ["/usr/local/cpanel/bin/cpuwatch", str(cores)]
def which(executable: str) -> Union[str, None]:
for path in os.get_exec_path():
full = os.path.join(path, executable)