From 8c134259d04319f72f725d225c8386955d7d02e1 Mon Sep 17 00:00:00 2001 From: n-jay Date: Sun, 14 Jul 2024 10:35:50 +0530 Subject: [PATCH] Support dependencies contained within addon --- cuesubmit/plugins/blender/OpenCue-Blender/Setup.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cuesubmit/plugins/blender/OpenCue-Blender/Setup.py b/cuesubmit/plugins/blender/OpenCue-Blender/Setup.py index e66d54600..6f9fb0978 100644 --- a/cuesubmit/plugins/blender/OpenCue-Blender/Setup.py +++ b/cuesubmit/plugins/blender/OpenCue-Blender/Setup.py @@ -21,15 +21,11 @@ blender_dependencies_directory = "lib/python3.10/site-packages" blender_dependencies_path = os.path.join(sys.prefix, blender_dependencies_directory) +opencue_blender_path = os.path.dirname(__file__) -opencue_home = os.environ['OPENCUE_HOME'] -pyoutline_directory = "pyoutline/outline" -filesequence_directory = "pycue/FileSequence" -opencue_directory = "pycue/opencue" - -pyoutline_path = os.path.join(opencue_home, pyoutline_directory) -filesequence_path = os.path.join(opencue_home, filesequence_directory) -opencue_path = os.path.join(opencue_home, opencue_directory) +pyoutline_path = os.path.join(opencue_blender_path, "dependencies", "outline") +filesequence_path = os.path.join(opencue_blender_path, "dependencies", "FileSequence") +opencue_path = os.path.join(opencue_blender_path, "dependencies", "opencue") pyoutline_directory = "outline" opencue_imported_directory = "opencue"