Skip to content

Commit

Permalink
One minor tweak to Houdini FX file permissions so they work properly …
Browse files Browse the repository at this point in the history
…out of the box.
  • Loading branch information
cdwasden committed Oct 8, 2015
1 parent d118be5 commit 6bf37f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion houdini-tools/python2.6libs/checkout_shot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 6bf37f3

Please sign in to comment.