hey all

ok what am I doing wrong here.

I have several mac to pc  and mac to mac path fixes and visa versa, all work 
perfectly, but when I try and set up mac to linux  and PC to linux for that 
matter.

bring consistency to pathing with UNC is just not going to happen at this 
stage..

s = s.replace('/Volumes/company/Projects/', '/mnt/', 1) 

nothing just does not work, I am guessing it might have some thing to do with 
this 

if os.name == "nt": 

but I just don't know


def filenameFix(s):
     if os.name == "nt":
         #print 'Applying dirmap: /Volumes/project/ --> S:/' 
        s = s.replace('/Volumes/company/Projects/project/', 'S:/', 1)
         s = s.replace('/Volumes/company/Projects/', '/mnt/', 1)
     else:
         #print 'Applying dirmap: S:/ --> /Volumes/project/' 
         s = s.replace('S:/', '/Volumes/company/Projects/project/', 1)
         s = s.replace('/mnt/', '/Volumes/company/Projects/', 1)
     return s

It was all cool in Nuke 7.0Vxx but we have had to role back to 6.3Vxx due to 
some issues with 7

-adam


_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to