There was an error while loading. Please reload this page.
1 parent cfe110a commit 4fc939dCopy full SHA for 4fc939d
2 files changed
python/copilot/py.typed
@@ -0,0 +1 @@
1
+
python/e2e/testharness/context.py
@@ -24,7 +24,7 @@ def get_cli_path() -> str:
24
return cli_path
25
26
# Look for CLI in sibling nodejs directory's node_modules
27
- base_path = Path(__file__).parent.parent.parent.parent
+ base_path = Path(__file__).parents[3] # equivalent to: path.parent.parent.parent.parent
28
full_path = base_path / "nodejs" / "node_modules" / "@github" / "copilot" / "index.js"
29
if full_path.exists():
30
return str(full_path.resolve())
@@ -35,7 +35,7 @@ def get_cli_path() -> str:
35
36
37
CLI_PATH = get_cli_path()
38
-SNAPSHOTS_DIR = Path(__file__).parent.parent.parent.parent / "test" / "snapshots"
+SNAPSHOTS_DIR = Path(__file__).parents[3] / "test" / "snapshots"
39
40
41
class E2ETestContext:
0 commit comments