File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -60,21 +60,21 @@ def run(self) -> None:
60
60
self ._client .send (feedback )
61
61
62
62
@property
63
- def plugin_run_dir (self ) -> Path :
63
+ def run_dir (self ) -> Path :
64
64
"""Return the run directory of the plugin."""
65
65
return Path (sys .argv [0 ]).parent
66
66
67
- def plugin_root_dir (self ) -> Path :
67
+ def root_dir (self ) -> Path :
68
68
"""Return the root directory of the plugin."""
69
- current_dir = self .plugin_run_dir
69
+ current_dir = self .run_dir
70
70
for part in current_dir .parts :
71
71
if current_dir .joinpath (MANIFEST_FILE ).exists ():
72
72
return current_dir
73
73
current_dir = current_dir .parent
74
- 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 .run_dir } or any parent directory." )
75
75
76
76
def manifest (self ) -> PluginManifestSchema :
77
77
"""Return the plugin manifest."""
78
- with open (self .plugin_root_dir () / MANIFEST_FILE , 'r' , encoding = 'utf-8' ) as f :
78
+ with open (self .root_dir () / MANIFEST_FILE , 'r' , encoding = 'utf-8' ) as f :
79
79
manifest = json .load (f )
80
80
return manifest
You can’t perform that action at this time.
0 commit comments