Skip to content

Commit dd1e74b

Browse files
Copilotm-kuhn
andcommitted
Remove redundant Path wrapper in requirements_path construction
Co-authored-by: m-kuhn <588407+m-kuhn@users.noreply.github.com>
1 parent 8116c15 commit dd1e74b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

a00_qpip/plugin.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,7 @@ def check_deps(self, additional_plugins=[]) -> Union[MainDialog, bool]:
180180
needs_gui = False
181181
for plugin_name in plugin_names:
182182
# If requirements.txt is present, we see if we can load it
183-
requirements_path = (
184-
Path(self.plugins_path) / plugin_name / "requirements.txt"
185-
)
183+
requirements_path = self.plugins_path / plugin_name / "requirements.txt"
186184
if requirements_path.is_file():
187185
log(f"Loading requirements for {plugin_name}")
188186
with open(requirements_path, "r") as f:

0 commit comments

Comments
 (0)