def get_shake(): shake = utilities.find_executable_path('shake') if shake: return shake if platform.system() == 'Darwin': path = '/Applications/Shake/shake.app/Contents/MacOS/shake' if os.path.exists(path): return path return None
def get_rv(): rv_exe = ['RV64'] if platform.machine() == 'i386': rv_exe.insert(0, 'RV') for exe in rv_exe: rv = utilities.find_executable_path(exe) if rv: return rv if platform.system() == 'Darwin': rv_paths = ['/Applications/RV64.app/Contents/MacOS/RV64'] if platform.machine() == 'i386': rv_paths.insert(0,'/Applications/RV.app/Contents/MacOS/RV') for path in rv_paths: if os.path.exists(path): return path
def get_rv(): rv_exe = ['RV64'] if platform.machine() == 'i386': rv_exe.insert(0, 'RV') for exe in rv_exe: rv = utilities.find_executable_path(exe) if rv: return rv if platform.system() == 'Darwin': rv_paths = ['/Applications/RV64.app/Contents/MacOS/RV64'] if platform.machine() == 'i386': rv_paths.insert(0, '/Applications/RV.app/Contents/MacOS/RV') for path in rv_paths: if os.path.exists(path): return path
def get_identify(): executable = utilities.find_executable_path('identify') assert executable return executable
def get_convert(): executable = utilities.find_executable_path('convert') assert executable return executable
def get_ffmpeg(): ffmpeg = utilities.find_executable_path('ffmpeg') assert ffmpeg return ffmpeg
def get_ffprobe(): ffprobe = utilities.find_executable_path('ffprobe') assert ffprobe return ffprobe