Skip to content

Commit d5697c9

Browse files
committed
fix: update SDK path resolution to use current working directory
1 parent 7f63807 commit d5697c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/vortex_sdk/bridge.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@ def _verify_node(self) -> None:
4343

4444
def _find_sdk(self) -> None:
4545
"""Find the npm-installed SDK (local or global)."""
46-
# First check local node_modules
47-
project_root = Path(__file__).parent.parent.parent
48-
sdk_path = project_root / "node_modules" / "@vortexfi" / "sdk"
46+
# First check local node_modules in current working directory
47+
sdk_path = Path.cwd() / "node_modules" / "@vortexfi" / "sdk"
4948

5049
if sdk_path.exists():
5150
return # Local installation found
@@ -123,7 +122,7 @@ def call_method(self, method: str, *args, timeout: int = 60) -> Any:
123122
capture_output=True,
124123
text=True,
125124
check=False,
126-
cwd=str(Path(__file__).parent.parent.parent),
125+
cwd=str(Path.cwd()),
127126
timeout=timeout
128127
)
129128

0 commit comments

Comments
 (0)