We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6af56c8 commit 4a1c345Copy full SHA for 4a1c345
spyder_kernels/utils/pythonenv.py
@@ -64,15 +64,17 @@ def get_conda_env_path(pyexec, quote=False):
64
65
def get_pixi_manifest_path_and_env_name(pyexec, quote=False):
66
pyexec_path = Path(pyexec.replace("\\", "/"))
67
- pixi_env_path = pyexec_path.parent
+ pixi_env_path = pyexec_path.parents[0 if os.name == "nt" else 1]
68
pixi_env_name = pixi_env_path.name
69
pixi_dir_path = pixi_env_path.parents[1]
70
+
71
pixi_manifest_path = None
72
pixi_manifest_paths = [
73
pixi_dir_path.parent / "pixi.toml",
74
pixi_dir_path.parent / "pyproject.toml",
75
pixi_dir_path.parent / "manifests" / "pixi-global.toml",
76
]
77
78
for manifest_path in pixi_manifest_paths:
79
if manifest_path.exists():
80
pixi_manifest_path = manifest_path
0 commit comments