diff --git a/Editor/Windows/UnityMCPEditorWindow.cs b/Editor/Windows/UnityMCPEditorWindow.cs index 999761a9..453dcb8f 100644 --- a/Editor/Windows/UnityMCPEditorWindow.cs +++ b/Editor/Windows/UnityMCPEditorWindow.cs @@ -31,10 +31,10 @@ public class UnityMCPEditorWindow : EditorWindow private List possiblePaths = new() { - Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python", "server.py")), - Path.GetFullPath(Path.Combine(Application.dataPath, "Packages", "com.justinpbarnett.unity-mcp", "Python", "server.py")), - Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Library", "PackageCache", "com.justinpbarnett.unity-mcp@*", "Python", "server.py")), - Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Packages", "com.justinpbarnett.unity-mcp", "Python", "server.py")) + Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python~", "server.py")), + Path.GetFullPath(Path.Combine(Application.dataPath, "Packages", "com.justinpbarnett.unity-mcp", "Python~", "server.py")), + Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Library", "PackageCache", "com.justinpbarnett.unity-mcp@*", "Python~", "server.py")), + Path.GetFullPath(Path.Combine(Application.dataPath, "..", "Packages", "com.justinpbarnett.unity-mcp", "Python~", "server.py")) }; [MenuItem("Window/Unity MCP")] @@ -342,7 +342,7 @@ private string GetPythonDirectory(List possiblePaths) foreach (var dir in matchingDirs) { - string candidatePath = Path.Combine(dir, "Python", "server.py"); + string candidatePath = Path.Combine(dir, "Python~", "server.py"); if (File.Exists(candidatePath)) { @@ -457,7 +457,7 @@ private void ShowManualInstructionsWindow(string configPath, McpClient mcpClient private string FindPackagePythonDirectory() { - string pythonDir = "/path/to/your/unity-mcp/Python"; + string pythonDir = "/path/to/your/unity-mcp/Python~"; try { @@ -472,7 +472,7 @@ private string FindPackagePythonDirectory() if (package.name == "com.justinpbarnett.unity-mcp") { string packagePath = package.resolvedPath; - string potentialPythonDir = Path.Combine(packagePath, "Python"); + string potentialPythonDir = Path.Combine(packagePath, "Python~"); if (Directory.Exists(potentialPythonDir) && File.Exists(Path.Combine(potentialPythonDir, "server.py"))) @@ -490,7 +490,7 @@ private string FindPackagePythonDirectory() // If not found via Package Manager, try manual approaches // First check for local installation string[] possibleDirs = { - Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python")) + Path.GetFullPath(Path.Combine(Application.dataPath, "unity-mcp", "Python~")) }; foreach (var dir in possibleDirs) diff --git a/Python.meta b/Python.meta deleted file mode 100644 index 0c9d7eb1..00000000 --- a/Python.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: ea6797cf7f34d6044a89364e1ac4d4c9 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/__init__.py.meta b/Python/__init__.py.meta deleted file mode 100644 index bd400add..00000000 --- a/Python/__init__.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 41c60e5ab0e41d84ba997afc471ac58a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/__pycache__.meta b/Python/__pycache__.meta deleted file mode 100644 index dcd76456..00000000 --- a/Python/__pycache__.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 253b8f93cd23400478080cab9d619729 -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/config.py.meta b/Python/config.py.meta deleted file mode 100644 index 8808fe44..00000000 --- a/Python/config.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: bbc163679c5bb0f418c6f6af1fa50f3a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/pyproject.toml.meta b/Python/pyproject.toml.meta deleted file mode 100644 index 0b1414f5..00000000 --- a/Python/pyproject.toml.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: ac3ad17989088c24598726ec3e0a53ba -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/server.py.meta b/Python/server.py.meta deleted file mode 100644 index 13ba7761..00000000 --- a/Python/server.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 872659ff7f5d9294ca6d47e93f6a111f -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools.meta b/Python/tools.meta deleted file mode 100644 index f71a0f83..00000000 --- a/Python/tools.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 30b461704d14cea488b84870202ae45f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/__init__.py.meta b/Python/tools/__init__.py.meta deleted file mode 100644 index 93a34b74..00000000 --- a/Python/tools/__init__.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 8865a8f86cc0a3240b94504bd2e5c0be -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/__pycache__.meta b/Python/tools/__pycache__.meta deleted file mode 100644 index 3c15c116..00000000 --- a/Python/tools/__pycache__.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 9230796797a49a54297a8fa444a1f5bb -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/execute_menu_item.py.meta b/Python/tools/execute_menu_item.py.meta deleted file mode 100644 index 3d0a9689..00000000 --- a/Python/tools/execute_menu_item.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 67b82e49c36517040b7cfea8e421764e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/manage_asset.py.meta b/Python/tools/manage_asset.py.meta deleted file mode 100644 index 5354ab00..00000000 --- a/Python/tools/manage_asset.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 27ffc6de0e9253e4f980ae545f07731a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/manage_editor.py.meta b/Python/tools/manage_editor.py.meta deleted file mode 100644 index 894c2095..00000000 --- a/Python/tools/manage_editor.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: a2f972b61922666418f99fa8f8ba817e -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/manage_gameobject.py.meta b/Python/tools/manage_gameobject.py.meta deleted file mode 100644 index 0c60c375..00000000 --- a/Python/tools/manage_gameobject.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: b34907e09ab90854fa849302b96c6247 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/manage_scene.py.meta b/Python/tools/manage_scene.py.meta deleted file mode 100644 index 342b47e3..00000000 --- a/Python/tools/manage_scene.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: be712c04494a1874593719eeb2a882ac -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/manage_script.py.meta b/Python/tools/manage_script.py.meta deleted file mode 100644 index 8c84af44..00000000 --- a/Python/tools/manage_script.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: beb93a353b9140c44b7ac22d2bb8481a -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/tools/read_console.py.meta b/Python/tools/read_console.py.meta deleted file mode 100644 index 316a7d44..00000000 --- a/Python/tools/read_console.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c94ba17ca2284764f99d61356c5feded -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/unity_connection.py.meta b/Python/unity_connection.py.meta deleted file mode 100644 index 20b08b2f..00000000 --- a/Python/unity_connection.py.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: c72711b644ecf0d40945ddba9b4bce77 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/unity_mcp.egg-info.meta b/Python/unity_mcp.egg-info.meta deleted file mode 100644 index 21940ff9..00000000 --- a/Python/unity_mcp.egg-info.meta +++ /dev/null @@ -1,8 +0,0 @@ -fileFormatVersion: 2 -guid: 714de9c710feb1a42878a16b7a4e7a6f -folderAsset: yes -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/uv.lock.meta b/Python/uv.lock.meta deleted file mode 100644 index 1600cbf5..00000000 --- a/Python/uv.lock.meta +++ /dev/null @@ -1,7 +0,0 @@ -fileFormatVersion: 2 -guid: 37728a13ca38f894b8760d808a909148 -DefaultImporter: - externalObjects: {} - userData: - assetBundleName: - assetBundleVariant: diff --git a/Python/.python-version b/Python~/.python-version similarity index 100% rename from Python/.python-version rename to Python~/.python-version diff --git a/Python/__init__.py b/Python~/__init__.py similarity index 100% rename from Python/__init__.py rename to Python~/__init__.py diff --git a/Python/config.py b/Python~/config.py similarity index 100% rename from Python/config.py rename to Python~/config.py diff --git a/Python/pyproject.toml b/Python~/pyproject.toml similarity index 100% rename from Python/pyproject.toml rename to Python~/pyproject.toml diff --git a/Python/server.py b/Python~/server.py similarity index 100% rename from Python/server.py rename to Python~/server.py diff --git a/Python/tools/__init__.py b/Python~/tools/__init__.py similarity index 100% rename from Python/tools/__init__.py rename to Python~/tools/__init__.py diff --git a/Python/tools/execute_menu_item.py b/Python~/tools/execute_menu_item.py similarity index 100% rename from Python/tools/execute_menu_item.py rename to Python~/tools/execute_menu_item.py diff --git a/Python/tools/manage_asset.py b/Python~/tools/manage_asset.py similarity index 100% rename from Python/tools/manage_asset.py rename to Python~/tools/manage_asset.py diff --git a/Python/tools/manage_editor.py b/Python~/tools/manage_editor.py similarity index 100% rename from Python/tools/manage_editor.py rename to Python~/tools/manage_editor.py diff --git a/Python/tools/manage_gameobject.py b/Python~/tools/manage_gameobject.py similarity index 100% rename from Python/tools/manage_gameobject.py rename to Python~/tools/manage_gameobject.py diff --git a/Python/tools/manage_scene.py b/Python~/tools/manage_scene.py similarity index 100% rename from Python/tools/manage_scene.py rename to Python~/tools/manage_scene.py diff --git a/Python/tools/manage_script.py b/Python~/tools/manage_script.py similarity index 100% rename from Python/tools/manage_script.py rename to Python~/tools/manage_script.py diff --git a/Python/tools/read_console.py b/Python~/tools/read_console.py similarity index 100% rename from Python/tools/read_console.py rename to Python~/tools/read_console.py diff --git a/Python/unity_connection.py b/Python~/unity_connection.py similarity index 100% rename from Python/unity_connection.py rename to Python~/unity_connection.py diff --git a/Python/uv.lock b/Python~/uv.lock similarity index 100% rename from Python/uv.lock rename to Python~/uv.lock