Mat X wrote:
> Using "import platform" was preventing our Nukes from launching. :)
> I think it's deprecated now.
Oh nice.
I suppose you could inspect the os.environment["OS"] variable;
that's been reliable enough (so far), and doesn't require an import.
The OS environment variable is set to "Windows_NT" on all versions
of windows since NT (NT through Win7).
Apparently we've never actually gotten away from "NT Technology" ;)
> This code below worked for us (windows / mac).
>
> <snip>
> import os
> def filenameFix(filename):
> if os.name == "nt":
> return filename.replace( "/Volumes/Filer/", "f:\\" )
> return filename.replace( "f:\\", "/Volumes/Filer/" )
> <snip>
Great -- so to summarize, I think; modify the nuke init.py
to contain e.g.:
----
import os
# Local filename modifications
def filenameFix(filename):
if os.name == "nt":
return filename.replace( "/Volumes/Filer/", "f:\\" )
else:
return filename.replace( "f:\\", "/Volumes/Filer/" )
nuke.addFilenameFilter(filenameFix)
----
--
Greg Ercolano, erco@(email surpressed)
Seriss Corporation
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)ext.23
Fax: (Tel# suppressed)
Cel: (Tel# suppressed)
|