Skip to content

Commit b2e1c16

Browse files
committed
Resolve short paths when installing miniconda.
1 parent 6e0a5ec commit b2e1c16

File tree

1 file changed

+1
-1
lines changed
  • build_tools/np311-windows/miniconda

1 file changed

+1
-1
lines changed

build_tools/np311-windows/miniconda/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ def run(temp_dir: str):
1313
install_dir = os.path.join(temp_dir, "install")
1414
os.mkdir(install_dir)
1515
__np__.run_with_output(downloaded_file, "/InstallationType=JustMe", "/AddToPath=0", "/S", "/RegisterPython=0",
16-
"/NoRegistry=1", "/NoScripts=1", "/NoShortcuts=1", "/D=" + install_dir)
16+
"/NoRegistry=1", "/NoScripts=1", "/NoShortcuts=1", "/D=" + os.path.realpath(install_dir))
1717
os.rename(os.path.join(install_dir, "_conda.exe"), os.path.join(install_dir, "conda.exe"))
1818
__np__.install_build_tool("miniconda", os.path.join(install_dir, "*"))

0 commit comments

Comments
 (0)