Skip to content

Commit

Permalink
Merge pull request #8 from nfa-vfxim/gilles
Browse files Browse the repository at this point in the history
Fixed Nuke project repo bug when working on network attached storage.
  • Loading branch information
gillesvink authored Sep 4, 2020
2 parents 0a95145 + 12dff83 commit 06b43b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions core/schema/project/00_pipeline/nuke/repository/init.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# Netherlands Film Academy - Nuke standard plugins (init.py)
# Netherlands Film Academy - Nuke Shotgun project plugins (init.py)
# Initialize message
print("Project config loaded")

# NFA_Repository
# Project_Repository
dirname = os.path.dirname(os.path.abspath(__file__))
nuke.pluginAddPath(os.path.join(dirname, 'project_repo'))
project_dir = os.path.join(dirname, 'project_repo')
project_dir_win = project_dir.replace(os.sep, '/')

nuke.pluginAddPath(project_dir_win)
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
# nuke
import nuke

curdir = os.path.dirname(os.path.abspath(__file__))
project_dir = os.path.join(dirname, 'project_repo')
project_dir_win = project_dir.replace(os.sep, '/')

dirname, filename = os.path.split(os.path.abspath(__file__))

for root, dirs, files in os.walk(dirname):
for root, dirs, files in os.walk(project_dir_win):
nuke.pluginAddPath(root)

0 comments on commit 06b43b6

Please sign in to comment.