From: Mat X <info@matx.ca>
Subject: Re: [Q+A] Nuke cross platform pathnames
   Date: Thu, 10 Feb 2011 10:55:34 -0800
Msg# 2012
View Complete Thread (12 articles) | All Threads
Last Next
Using "import platform" was preventing our Nukes from launching.

:)

I think it's deprecated now.

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>


Last Next