def main():
    args = parse_args()
    check_args()
    source_string_path = os.path.join(PRESEARCH_SOURCE_ROOT, args.source_string_path[0])
    filename = os.path.basename(source_string_path).split('.')[0]
    if should_use_transifex(source_string_path, filename):
        print('Transifex: ', source_string_path)
        pull_source_files_from_transifex(source_string_path, filename)
    else:
        print('Local: ', source_string_path)
        override_path = get_override_file_path(source_string_path)
        print('Transifex override: ', override_path)
        override_filename = os.path.basename(override_path).split('.')[0]
        override_exists = os.path.exists(override_path)
        if override_exists:
            pull_source_files_from_transifex(override_path, override_filename)
        pull_xtb_without_transifex(source_string_path, PRESEARCH_SOURCE_ROOT)
        if override_exists:
            combine_override_xtb_into_original(source_string_path)
def main():
    args = parse_args()
    check_args()
    source_string_path = os.path.join(PRESEARCH_SOURCE_ROOT, args.source_string_path[0])
    filename = os.path.basename(source_string_path).split('.')[0]
    if should_use_transifex(source_string_path, filename):
        print('Transifex: ', source_string_path)
        pull_source_files_from_transifex(source_string_path, filename)
    else:
        print('Local: ', source_string_path)
        override_path = get_override_file_path(source_string_path)
        print('Transifex override: ', override_path)
        override_filename = os.path.basename(override_path).split('.')[0]
        override_exists = os.path.exists(override_path)
        if override_exists:
            pull_source_files_from_transifex(override_path, override_filename)
        pull_xtb_without_transifex(source_string_path, PRESEARCH_SOURCE_ROOT)
        if override_exists:
            combine_override_xtb_into_original(source_string_path)