Skip to content

Commit df225b9

Browse files
committed
Change to property
1 parent 85031b1 commit df225b9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pyflowlauncher/plugin.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,19 @@ def run(self) -> None:
5959
feedback['SettingsChange'] = self.settings
6060
self._client.send(feedback)
6161

62+
@property
6263
def plugin_run_dir(self) -> Path:
6364
"""Return the run directory of the plugin."""
6465
return Path(sys.argv[0]).parent
6566

6667
def plugin_root_dir(self) -> Path:
6768
"""Return the root directory of the plugin."""
68-
current_dir = self.plugin_run_dir()
69+
current_dir = self.plugin_run_dir
6970
for part in current_dir.parts:
7071
if current_dir.joinpath(MANIFEST_FILE).exists():
7172
return current_dir
7273
current_dir = current_dir.parent
73-
raise FileNotFoundError(f"Could not find {MANIFEST_FILE} in {self.plugin_run_dir()} or any parent directory.")
74+
raise FileNotFoundError(f"Could not find {MANIFEST_FILE} in {self.plugin_run_dir} or any parent directory.")
7475

7576
def manifest(self) -> PluginManifestSchema:
7677
"""Return the plugin manifest."""

0 commit comments

Comments
 (0)