Ie, this ran just fine for me:
Perhaps you could give the exact syntax error?
- Paul
Given that it works on 2008 (or, at least, 2008 ext 2), it seems it's
simply a bug with 8.5.
This seems even more likely if you exam the line it was trying to
execute when it got a syntax error:
<function dirPath at 0x...> "C:/.../My Documents" "directory";
...in other words, it's formatting the function (using it's string
representation!) and it's arguments as though they're a mel command,
and trying to run the result... in python.
Only workaround I can think of would be a quick dip back into mel,
using maya.mel.eval...
- Paul
PS - Yeah, pastebin rocks... thank Farsheed for turning me onto that
one. =) Can you believe I questioned it's usefulness at first? =P