totally!
Or even better, the way I do it

# Use the RAID for caches if available
RAIDS = ("/Volumes/FASZT", "/Volumes/SUPERFASZT")
raid_found = False
for volume in RAIDS:
    if os.path.exists(volume):
        os.environ["NUKE_TEMP_DIR"] = os.path.join(volume, "NukeCache")
        raid_found = True

if not raid_found:
    nuke.message("No RAID found, your cache will suck and everything will be 
SLOW”)

-- 
Julik Tarkhanov | HecticElectric | Keizersgracht 736 1017 EX
Amsterdam | The Netherlands | tel. +31 20 330 8250
cel. +31 61 145 06 36 | http://hecticelectric.nl

On 19 Nov 2013, at 16:02, Gary Jaeger <[email protected]> wrote:

> 
> On Fri, Nov 15, 2013 at 6:56 PM, Nathan Rusch <[email protected]> 
> wrote:
> os.environ['NUKE_TEMP_DIR'] = os.path.expanduser('~/nuke')
> 
> So money! thank you, sir

_______________________________________________
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