File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1+
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ def get_cli_path() -> str:
2424 return cli_path
2525
2626 # Look for CLI in sibling nodejs directory's node_modules
27- base_path = Path (__file__ ).parent .parent .parent .parent
27+ base_path = Path (__file__ ).parents [ 3 ] # equivalent to: path. parent.parent.parent.parent
2828 full_path = base_path / "nodejs" / "node_modules" / "@github" / "copilot" / "index.js"
2929 if full_path .exists ():
3030 return str (full_path .resolve ())
@@ -35,7 +35,7 @@ def get_cli_path() -> str:
3535
3636
3737CLI_PATH = get_cli_path ()
38- SNAPSHOTS_DIR = Path (__file__ ).parent . parent . parent . parent / "test" / "snapshots"
38+ SNAPSHOTS_DIR = Path (__file__ ).parents [ 3 ] / "test" / "snapshots"
3939
4040
4141class E2ETestContext :
You can’t perform that action at this time.
0 commit comments