mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fixed possibility of multiple drives
This commit is contained in:
parent
97b0a72ca9
commit
021f1a7ccd
1 changed files with 11 additions and 11 deletions
22
start.py
22
start.py
|
|
@ -292,18 +292,18 @@ def run_disk_mapping_commands(mongo_url):
|
|||
for mapping in disk_mapping.get(low_platform):
|
||||
source, destination = mapping
|
||||
|
||||
args = ["subst", destination.rstrip('/'), source.rstrip('/')]
|
||||
_print("disk mapping args:: {}".format(args))
|
||||
try:
|
||||
output = subprocess.Popen(args)
|
||||
if output.returncode and output.returncode != 0:
|
||||
exc_msg = "Executing arguments was not successful: \"{}\"".format(
|
||||
args)
|
||||
args = ["subst", destination.rstrip('/'), source.rstrip('/')]
|
||||
_print("disk mapping args:: {}".format(args))
|
||||
try:
|
||||
output = subprocess.Popen(args)
|
||||
if output.returncode and output.returncode != 0:
|
||||
exc_msg = "Executing args was not successful: \"{}\"".format(
|
||||
args)
|
||||
|
||||
raise RuntimeError(exc_msg)
|
||||
except TypeError:
|
||||
_print("Error in mapping drive")
|
||||
raise
|
||||
raise RuntimeError(exc_msg)
|
||||
except TypeError:
|
||||
_print("Error in mapping drive")
|
||||
raise
|
||||
|
||||
|
||||
def set_avalon_environments():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue