update pyproject.toml get location

main
Justin Barnett 2025-04-08 11:44:12 -04:00
parent e4ccf614c5
commit 7b303b5ba3
1 changed files with 6 additions and 1 deletions

View File

@ -146,7 +146,12 @@ namespace UnityMcpBridge.Editor.Helpers
RunCommand("git", $"checkout {BranchName}", workingDirectory: location); RunCommand("git", $"checkout {BranchName}", workingDirectory: location);
// Create version.txt file based on pyproject.toml, stored at the root level // Create version.txt file based on pyproject.toml, stored at the root level
string pyprojectPath = Path.Combine(location, "UnityMcpServer", "pyproject.toml"); string pyprojectPath = Path.Combine(
location,
"UnityMcpServer",
"src",
"pyproject.toml"
);
if (File.Exists(pyprojectPath)) if (File.Exists(pyprojectPath))
{ {
string pyprojectContent = File.ReadAllText(pyprojectPath); string pyprojectContent = File.ReadAllText(pyprojectPath);