コード例 #1
0
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)
コード例 #2
0
ファイル: run.py プロジェクト: mishagp/onlyoffice_build_tools
def find_rabbitmqctl(base_path):
    return base.find_file(os.path.join(base_path, 'RabbitMQ Server'),
                          'rabbitmqctl.bat')
コード例 #3
0
def find_redis(base_path):
  return base.find_file(os.path.join(base_path, 'Redis'), 'redis-cli.exe')