There is a difference between how vb Rhinoscript and Python rhinoscriptsyntax work here… VB returns just the path to the folder where the document is located, whereas Python returns the path plus the file name in one string. Both also have the command DocumentName to get just the filename.
Problem is if one wants just the folder, it’s a bit more difficult to get at in Python - something like:
In VB to get the full path to the document including the name you just concatenate Rhino.DocumentPath and Rhino.DocumentName…
Wonder if a switch can’t be added in Python rhinoscriptsyntax:
rs.DocumentPath(append_filename=True/False) (default - True)