From a06b078a26d0e5f30480d600c28536e2d95557d9 Mon Sep 17 00:00:00 2001 From: aardschok Date: Fri, 11 Aug 2017 16:04:11 +0200 Subject: [PATCH] fixed issue with unable to load colorbleed menu --- colorbleed/maya/menu.py | 5 ----- maya_environment.bat | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/colorbleed/maya/menu.py b/colorbleed/maya/menu.py index de7b252554..1aaf3bc372 100644 --- a/colorbleed/maya/menu.py +++ b/colorbleed/maya/menu.py @@ -1,7 +1,6 @@ import sys import os import logging -import site from avalon.vendor.Qt import QtWidgets, QtCore @@ -15,14 +14,10 @@ log = logging.getLogger(__name__) def deferred(): - # todo: replace path with server / library path from scriptsmenu import launchformaya import scriptsmenu.scriptsmenu as menu - reload(launchformaya) - reload(menu) - log.info("Attempting to install ...") # load configuration of custom menu diff --git a/maya_environment.bat b/maya_environment.bat index ceb50bbd74..a7850a7f07 100644 --- a/maya_environment.bat +++ b/maya_environment.bat @@ -13,7 +13,7 @@ if "%CB_MAYA_SHARED%" == "" ( :: For scripts menu tool -set PYTHONPATH=%CB_PIPELINE%\git\scriptsmenu;%PYTHONPATH% +set PYTHONPATH=%CB_PIPELINE%\git\scriptsmenu\python;%PYTHONPATH% set CB_SCRIPTS=%CB_PIPELINE%\git\cbMayaScripts\cbMayaScripts set COLORBLEED_SCRIPTS=%CB_SCRIPTS%