mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
only build project shelf if shelf config exists in presets
This commit is contained in:
parent
6dc33af075
commit
7fd9500ec8
1 changed files with 7 additions and 7 deletions
|
|
@ -2,14 +2,14 @@ import os
|
|||
import sys
|
||||
from pypeapp import config
|
||||
from pype.maya import lib
|
||||
reload(lib)
|
||||
|
||||
presets = config.get_presets()
|
||||
shelf_preset = presets['maya']['project_shelf']
|
||||
project = os.environ["AVALON_PROJECT"]
|
||||
shelf_preset = presets['maya'].get('project_shelf')
|
||||
if shelf_preset:
|
||||
project = os.environ["AVALON_PROJECT"]
|
||||
|
||||
modules = {}
|
||||
for k, v in shelf_preset['imports'].items():
|
||||
sys.modules[k] = __import__(v, fromlist=[project])
|
||||
modules = {}
|
||||
for k, v in shelf_preset['imports'].items():
|
||||
sys.modules[k] = __import__(v, fromlist=[project])
|
||||
|
||||
projectShelf = lib.shelf(name=shelf_preset['name'], preset=shelf_preset)
|
||||
projectShelf = lib.shelf(name=shelf_preset['name'], preset=shelf_preset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue