From 6bf37f30545b29d4cb5c03228033b166057e38c0 Mon Sep 17 00:00:00 2001 From: Chris Wasden Date: Thu, 8 Oct 2015 15:49:11 -0600 Subject: [PATCH] One minor tweak to Houdini FX file permissions so they work properly out of the box. --- houdini-tools/python2.6libs/checkout_shot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/houdini-tools/python2.6libs/checkout_shot.py b/houdini-tools/python2.6libs/checkout_shot.py index 995b97d..644ce19 100644 --- a/houdini-tools/python2.6libs/checkout_shot.py +++ b/houdini-tools/python2.6libs/checkout_shot.py @@ -62,7 +62,8 @@ def accept(self): self.done(0) else: hou.hipFile.clear() - hou.hipFile.save(toOpen) + hou.hipFile.save(toOpen) + os.system('chmod 774 -R '+ toOpen) self.done(0) elif self.currentShot.checkedOutByMe(): destpath = self.currentShot.getCheckoutDest() @@ -130,6 +131,7 @@ def __init__(self, name, shotType): self.description = self._getDescription() def _getWorkingDirectory(self): + # Get the working directory, and creates it if it doesn't exist. parent = os.path.join(os.environ['SHOTS_DIR'], self.name) wd = os.path.join(parent, self.shotType) if not amu.isVersionedFolder(wd):