From efc4ba8b6c62539706b26a1ec3841c39de81897f Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Fri, 5 Nov 2021 09:50:37 +0100 Subject: [PATCH] Fix - different command used for Linux and Mac OS --- start.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/start.py b/start.py index 29b4921d19..25afb49445 100644 --- a/start.py +++ b/start.py @@ -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)