pyux.list_pyos - pytha-3d-cad/pytha-lua-api GitHub Wiki
Opens the file selector and returns a list of handles to all .pyo files in the given folder.
pyux.list_pyos([folder [,rebrowse]])
| Parameter | Type | Description |
|---|---|---|
folder |
file_handle |
Optional: handle to a directory or file |
rebrowse |
boolean |
Optional: open the folder selection dialog also when folder is specified |
Return value
| Type | Description |
|---|---|
{file_handle, ...} |
Table containing file handles to all .pyo files in the selected folder. nil if selection was cancelled. |
By passing folder to the function, the file explorer will list all .pyo files in folder. Otherwise, the folder selection dialog will open.