From a3f192633893735c1ceb6e03afbc30d6cfb5d806 Mon Sep 17 00:00:00 2001 From: Justin Barnett Date: Tue, 8 Apr 2025 15:19:52 -0400 Subject: [PATCH] pass content, not path --- UnityMcpBridge/Editor/Helpers/ServerInstaller.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs index 0d8b162..129929d 100644 --- a/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs +++ b/UnityMcpBridge/Editor/Helpers/ServerInstaller.cs @@ -39,7 +39,9 @@ namespace UnityMcpBridge.Editor.Helpers "src", "pyproject.toml" ); - string installedVersion = ParseVersionFromPyproject(pyprojectPath); + string installedVersion = ParseVersionFromPyproject( + File.ReadAllText(pyprojectPath) + ); string latestVersion = GetLatestVersion(); if (IsNewerVersion(latestVersion, installedVersion))