Fix - different command used for Linux and Mac OS

This commit is contained in:
Petr Kalis 2021-11-05 09:50:37 +01:00
parent a55daf8712
commit efc4ba8b6c

View file

@ -292,8 +292,12 @@ def run_disk_mapping_commands(mongo_url):
return
mappings = disk_mapping.get(low_platform) or []
if low_platform == "windows":
command = "subst"
else:
command = "ln -s"
for source, destination in mappings:
args = ["subst", destination.rstrip('/'), source.rstrip('/')]
args = [command, destination.rstrip('/'), source.rstrip('/')]
_print("disk mapping args:: {}".format(args))
try:
output = subprocess.Popen(args)