pyux.get_library_handle - pytha-3d-cad/pytha-lua-api GitHub Wiki

Returns the file handle to a .pyo in the PYTHA library folder

pyux.get_library_handle(lib_type [,folder [,subfolder ...]]]) 
Parameter Type Description
lib_type string Must be 'library'. Reserved for future use.
folder string Optional: Name of a folder in the PYTHA library.
subfolder string Optional: Name of a subfolder in folder

Return value

Type Description
file_handle The first .pyo file in the specified folder. nil if no .pyo file is found at the given location.

The function will combine the installation path of the PYTHA library (e.g.C:\Users\Public\PYTHA) and the relative path given by folder and subfolder and subsequent levels to a full path (C:\Users\Public\PYTHA\folder\subfolder) and return the file handle to the first .pyo file in this folder.

See also:

pyux, import_pyo, select_pyo, list_pyos