Skip to content

Commit bd1da0a

Browse files
committed
Remove executable from temp project attributes
1 parent da5bf61 commit bd1da0a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scfw/package_managers/npm/temp_project.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ class TemporaryNpmProject:
2222
needed by this class to run commands exist exist only while inside a context. Invoking
2323
this class' methods outside of a context will result in error.
2424
"""
25-
def __init__(self, executable: Path, project_root: Path):
25+
def __init__(self, project_root: Path):
2626
"""
2727
Initialize a new `TemporaryNpmProject`.
2828
2929
Args:
30-
executable: A `Path` in the local filesystem to the `npm` executable to use.
3130
project_root:
3231
A `Path` in the local filesystem to the project root of the reference
3332
npm project that should be duplicated into the temporary one.
@@ -38,7 +37,6 @@ def __init__(self, executable: Path, project_root: Path):
3837
self._package_json: Optional[Path] = None
3938
self._package_lock: Optional[Path] = None
4039

41-
self.executable = executable
4240
self.project_root = project_root
4341

4442
def __enter__(self) -> Self:

0 commit comments

Comments
 (0)