import rhinoscriptsyntax as rs filter = "CSV file (*.csv)|*.csv|*.txt|All Files (*.*)|*.*||" file = rs.OpenFileName("Open File", filter)