Skip to content
Snippets Groups Projects
Commit dae19d5f authored by Rasmus Sode Lund's avatar Rasmus Sode Lund :zap:
Browse files

added escape of backslash for windows path destinations in installer

parent 78e69801
No related branches found
No related tags found
1 merge request!275added escape of backslash for windows path destinations in installer
Pipeline #61578 passed with warnings
......@@ -44,6 +44,10 @@ def install_wind_tool(
destination : str, optional
Destination path for the download / installation. If None, the destination is set to cwd. By default None
"""
# Escape backslash if windowspath is given
destination = Path(destination.encode('unicode_escape').decode()).as_posix()
if tool is None:
print("No tool has been given for install. Nothing has been installed.")
return
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment