def check_gitPath(): path = base.get_env('PATH') gitExecPath = base.find_file( os.path.join(os.environ['PROGRAMW6432'], 'Git\\cmd'), 'git.exe') or base.find_file( os.path.join(os.environ['ProgramFiles(x86)'], 'Git\\cmd'), 'git.exe') gitDir = base.get_script_dir(gitExecPath) if (path.find(gitDir) == -1): base.set_env('PATH', gitDir + os.pathsep + path)
def find_rabbitmqctl(base_path): return base.find_file(os.path.join(base_path, 'RabbitMQ Server'), 'rabbitmqctl.bat')
def find_redis(base_path): return base.find_file(os.path.join(base_path, 'Redis'), 'redis-cli.exe')