1/6/2024 0 Comments Houdini linux![]() ![]() get_daily_builds_list ( product, version = None, platform = platform, only_production = False ) # Retrieve the latest daily build available launcher_file = download_build ( service, builds ) # =Installation part begins here= if _name_ = "_main_" : run () S_IRGRP ) def run (): product = "houdini-launcher" platform = get_current_platform () service = create_service ( CLIENT_ID, CLIENT_SECRET ) # Retrieve the daily builds list, if you want the latest production # you can skip this step builds = service. raw, open_file ) make_executable ( filename ) # Add executable privilege to the file specified in "file_path" def make_executable ( file_path ): stat_info = os. get ( url, stream = True ) as response : with open ( filename, "wb" ) as open_file : shutil. get_daily_build_download ( build, build, build, platform ) download_file ( build_info, build_info ) return build_info # Download the file hosted on "url" and name it as "filename" def download_file ( url, filename ): with requests. def download_build ( service, build ): platform = get_current_platform () build_info = service. service ( access_token_url = "", client_id = client_id, client_secret_key = client_secret_key, endpoint_url = "" ) # Download the file specified in "build" argument and return the # downloaded filename on success. def create_service ( client_id, client_secret_key ): return sidefx. startswith ( 'CYGWIN' ): return 'win64' elif current_platform = 'Darwin' : return 'macos' elif current_platform = 'Linux' : return 'linux' else : return '' # Return a rvice object allowing access to API functions. system () if current_platform = 'Windows' or current_platform. def get_current_platform (): current_platform = platform. Import sys import os import stat import requests import shutil import subprocess import platform import sidefx CLIENT_ID = "=Your Client Id=" CLIENT_SECRET = "=Your Client Secret=" # Return the current platform keyword that can be passed into # the SideFX Web API functions if current platform can be # recognized Otherwise, an empty string '' will be returned. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |