pytuflow.TuflowBinaries#
- class TuflowBinaries#
Bases:
object
Class for managing TUFLOW binary versions and paths. A single instance of this class is created and used globally. This instance should be used rather than manually initialising this class. To access the instance, import the
tuflow_binaries
variable:Examples
>>> from pytuflow.util import tuflow_binaries >>> tuflow_binaries.get('2023-03-AE') 'C:/TUFLOW/releases/2023-03-AE/TUFLOW_iSP_w64.exe'
- __init__()#
Methods
Check the registered TUFLOW folders for new versions of TUFLOW binaries and update the version2bin dictionary.
Converts the old settings to the new settings.
Load the registered TUFLOW binary folders into its own dictionary.
Load the registered TUFLOW binary versions into its own dictionary.
Load the TuflowVersions object from the JSON file.
Saves the tuflow versions to the cache (JSON file).
Returns the path to the JSON file containing stored TUFLOW version info.
Attributes
path} - versions registered by the user only (not registered by folder)
Registered TUFLOW binary folders
path}