pass content, not path

main
Justin Barnett 2025-04-08 15:19:52 -04:00
parent 2f260861df
commit a3f1926338
1 changed files with 3 additions and 1 deletions

View File

@ -39,7 +39,9 @@ namespace UnityMcpBridge.Editor.Helpers
"src", "src",
"pyproject.toml" "pyproject.toml"
); );
string installedVersion = ParseVersionFromPyproject(pyprojectPath); string installedVersion = ParseVersionFromPyproject(
File.ReadAllText(pyprojectPath)
);
string latestVersion = GetLatestVersion(); string latestVersion = GetLatestVersion();
if (IsNewerVersion(latestVersion, installedVersion)) if (IsNewerVersion(latestVersion, installedVersion))