mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
Support running correctly from server
This commit is contained in:
parent
035c74e388
commit
aaedaf135f
4 changed files with 5 additions and 12 deletions
|
|
@ -21,11 +21,6 @@ CREATE_PATH = os.path.join(PLUGINS_DIR, "maya", "create")
|
|||
|
||||
def install():
|
||||
|
||||
# add local pipeline library to the paths
|
||||
site.addsitedir(r"P:\pipeline\dev\git\cb")
|
||||
site.addsitedir(r"C:\Users\User\Documents\development\cbra")
|
||||
site.addsitedir(r"C:\Users\User\Documents\development\pyblish-cb")
|
||||
|
||||
pyblish.register_plugin_path(PUBLISH_PATH)
|
||||
avalon.register_plugin_path(avalon.Loader, LOAD_PATH)
|
||||
avalon.register_plugin_path(avalon.Creator, CREATE_PATH)
|
||||
|
|
|
|||
|
|
@ -10,16 +10,12 @@ import maya.cmds as cmds
|
|||
self = sys.modules[__name__]
|
||||
self._menu = "colorbleed"
|
||||
|
||||
# set colorbleed scripts path in environment keys
|
||||
os.environ["COLORBLEED_SCRIPTS"] = "P:\pipeline\dev\git\cbMayaScripts\cbMayaScripts"
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
||||
def deferred():
|
||||
|
||||
# todo: replace path with server / library path
|
||||
site.addsitedir("C:\Users\User\Documents\development\scriptsmenu\python")
|
||||
|
||||
from scriptsmenu import launchformaya
|
||||
import scriptsmenu.scriptsmenu as menu
|
||||
|
|
|
|||
|
|
@ -12,6 +12,11 @@ if "%CB_MAYA_SHARED%" == "" (
|
|||
)
|
||||
|
||||
|
||||
:: For scripts menu tool
|
||||
set PYTHONPATH=%CB_PIPELINE%\git\scriptsmenu;%PYTHONPATH%
|
||||
set CB_SCRIPTS=%CB_PIPELINE%\git\cbMayaScripts\cbMayaScripts
|
||||
set COLORBLEED_SCRIPTS=%CB_SCRIPTS%
|
||||
|
||||
:: Colorbleed Maya
|
||||
set PYTHONPATH=%CB_PIPELINE%\git\cbMayaScripts;%PYTHONPATH%
|
||||
set PYTHONPATH=%CB_PIPELINE%\git\inventory\python;%PYTHONPATH%
|
||||
|
|
|
|||
|
|
@ -14,8 +14,6 @@ if "%CB_APP_SHARED%" == "" (
|
|||
echo setting STORAGE..
|
||||
set STORAGE=P:
|
||||
|
||||
set LAUNCHER_ROOT=%~dp0/launchers
|
||||
|
||||
:: Core
|
||||
echo Add cb core..
|
||||
set PYTHONPATH=%CB_PIPELINE%\git\cb;%PYTHONPATH%
|
||||
|
|
@ -25,7 +23,6 @@ set PYTHONPATH=%CB_PIPELINE%\git\cbra;%PYTHONPATH%
|
|||
set PYTHONPATH=%CB_PIPELINE%\git\pyseq;%PYTHONPATH%
|
||||
set PYTHONPATH=%CB_PIPELINE%\git\Qt.py;%PYTHONPATH%
|
||||
|
||||
|
||||
:: Ftrack-connect
|
||||
::set PYTHONPATH=%CB_PIPELINE%\git\ftrack-connect\source;%PYTHONPATH%
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue