From 2577db7ea6e9a85cefd0485cf2f2d5053f47b3c8 Mon Sep 17 00:00:00 2001 From: Oliver Saal <29450366+osaal@users.noreply.github.com> Date: Sun, 11 Aug 2024 13:25:59 +0300 Subject: [PATCH] Fix Resolve paths for Linux - Removed a leading slash for the executable to fix path joining - Corrected expected path of DaVinciResolveScript.py --- storytoolkitai/integrations/mots_resolve.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/storytoolkitai/integrations/mots_resolve.py b/storytoolkitai/integrations/mots_resolve.py index e973746..4308e4b 100644 --- a/storytoolkitai/integrations/mots_resolve.py +++ b/storytoolkitai/integrations/mots_resolve.py @@ -195,8 +195,8 @@ def get_resolve(self): elif platform.system() == 'Linux': default_resolve_dir = '/opt/resolve/' - # @todo find out the executable name for Davinci Resolve on Linux - executable = '/bin/resolve' + # Confirmed working on Fedora 40 with KDE Plasma 6 (Wayland) + executable = 'bin/resolve' else: # check if the default path has it... @@ -231,7 +231,8 @@ def get_resolve(self): expectedPath = os.getenv( 'PROGRAMDATA') + "\\Blackmagic Design\\DaVinci Resolve\\Support\\Developer\\Scripting\\Modules\\" elif sys.platform.startswith("linux"): - expectedPath = "/opt/resolve/libs/Fusion/Modules/" + # Confirmed working on Fedora 40 with KDE lasma 6 (Wayland). + expectedPath = "/opt/resolve/Developer/Scripting/Modules/" # check if the default path has it... self.logger.debug("Unable to find module DaVinciResolveScript from PYTHONPATH "