mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Update openpype/hosts/flame/hooks/pre_flame_setup.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
fa65e20ff7
commit
dc920e1a03
1 changed files with 8 additions and 6 deletions
|
|
@ -126,12 +126,14 @@ class FlamePrelaunch(PreLaunchHook):
|
|||
for dirtm in dirs_to_modify:
|
||||
for root, dirs, files in os.walk(dirtm):
|
||||
try:
|
||||
for d in dirs:
|
||||
os.chmod(os.path.join(root, d), self.permisisons)
|
||||
for f in files:
|
||||
os.chmod(os.path.join(root, f), self.permisisons)
|
||||
except OSError as _E:
|
||||
self.log.warning("Not able to open files: {}".format(_E))
|
||||
for name in set(dirs) | set(files):
|
||||
path = os.path.join(root, name)
|
||||
st = os.stat(path)
|
||||
if oct(st.st_mode) != self.permissions:
|
||||
os.chmod(path, self.permisisons)
|
||||
|
||||
except OSError as exc:
|
||||
self.log.warning("Not able to open files: {}".format(exc))
|
||||
|
||||
|
||||
def _get_flame_fps(self, fps_num):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue