Skip to content

Commit 2d692ce

Browse files
committed
fix(cli): correct path to pyproject.toml in get_version function
1 parent e4473a5 commit 2d692ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

linkedin_mcp_server/cli_main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ def get_version() -> str:
278278
import os
279279
import tomllib
280280

281-
pyproject_path = os.path.join(os.path.dirname(__file__), "pyproject.toml")
281+
pyproject_path = os.path.join(
282+
os.path.dirname(os.path.dirname(__file__)), "pyproject.toml"
283+
)
282284
with open(pyproject_path, "rb") as f:
283285
data = tomllib.load(f)
284286
return data["project"]["version"]

0 commit comments

Comments
 (0)