FindFile

Searches for a file using Rhino's search path. Rhino will look for a file in the following locations:

  1. The current document's folder.

  2. Folder's specified in Options dialog, File tab.

  3. Rhino's System folders.

Syntax

rhinoscriptsyntax.FindFile(filename)

rhinoscript.application.FindFile(filename)

Parameters

filename

Required.  String.  A valid filename.

Returns

String

A qualified path to the specified filename if successful.

Example

import rhinoscriptsyntax as rs

path = rs.FindFile("Rhino.exe")

print path

Also See