mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix - different command used for Linux and Mac OS
This commit is contained in:
parent
a55daf8712
commit
efc4ba8b6c
1 changed files with 5 additions and 1 deletions
6
start.py
6
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue