Returns or sets Rhino's working directory, or folder. The working folder is the default folder for all file operations.
rhinoscriptsyntax.WorkingFolder( folder=None )
rhinoscript.application.WorkingFolder( folder=None )
enable |
Optional. String. The new working folder. |
String |
If folder is not specified, then the current working folder if successful. |
String |
If folder is specified, then the previous working folder if successful. |
import rhinoscriptsyntax as rs
folder = rs.WorkingFolder()
folder = rs.BrowseForFolder(folder, "Directory", "Select Directory")
if folder is not None:
rs.WorkingFolder(folder)