Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1.09 KB

build.md

File metadata and controls

44 lines (24 loc) · 1.09 KB

Build

from tdw.release.build import Build

Various helper functions for TDW builds.


Functions

get_url

Build.get_url()

Build.get_url(version=__version__, check_head=True)

(Static)

Parameter Type Default Description
version str version The version of the build. Default = the installed version of TDW.
check_head bool True If True, check the HTTP headers to make sure that the release exists.

Returns: The URL of the build release matching the version and the OS of this machine, True if the URL exists.

download

Build.download()

Build.download(version=__version__, v_prefix=True)

(Static)

Download the release corresponding to this version. Move it to the build path and extract it.

Parameter Type Default Description
version str version The version of the build. Default = the installed version of TDW.
v_prefix bool True If True, add a v to the start of the version string.

Returns: True if the build downloaded.