💅 style(screencapture): use fabric's get_relative_path for script_path resolution

This commit is contained in:
sankalp committed 2025-06-19 14:08:50 +05:45
1 parent d6dee7c50d
commit fbc2eb8f4e
1 file changed
+2 -1
+2 -1
View File
@@ -7,6 +7,7 @@ import os
import subprocess
from typing import List
from fabric.utils import get_relative_path
from modules.launcher.plugin_base import PluginBase
from modules.launcher.result import Result
from utils.icons import screenrecord, screenshots, ssfull, ssregion, stop
@@ -22,7 +23,7 @@ class ScreencapturePlugin(PluginBase):
self.display_name = "Screencapture"
self.description = "Take screenshots and screen recordings"
# Path to the screen-capture script
self.script_path = os.path.expanduser("~/Modus/scripts/screen-capture.sh")
self.script_path = get_relative_path("../../../scripts/screen-capture.sh")
def initialize(self):
"""Initialize the screencapture plugin."""