In Windows, rs.DocumentPath() returns the path plus the filename.
On Mac, rs.DocumentPath() returns just the path, without the filename
This obviously can create problems for cross-platform scripts.
if you run the following on both Windows and Mac platforms, you will see the difference:
import rhinoscriptsyntax as rs
import scriptcontext as sc
print sc.doc.Name
print rs.DocumentName()
print sc.doc.Path
print rs.DocumentPath()
In Windows you will see the first two and the second two are the same;
on Mac the second two are not the same.
The workaround is obviously not to use DocumentPath() but instead scriptcontext.doc.Path, but perhaps this should be corrected?
Thanks, --Mitch