support darwin for launching apps

This commit is contained in:
Ondrej Samohel 2020-05-12 17:21:42 +02:00
parent e09cacd9e0
commit 777eea9275

View file

@ -259,7 +259,7 @@ class AppAction(BaseAction):
executable=execfile, args=[], environment=env
)
elif sys.platform.startswith("linux"):
elif sys.platform.startswith("linux") or sys.platform.startswith("darwin"):
execfile = os.path.join(path.strip('"'), self.executable)
if not os.path.isfile(execfile):
msg = "Launcher doesn't exist - {}".format(execfile)
@ -303,7 +303,7 @@ class AppAction(BaseAction):
)
}
popen = avalonlib.launch(
popen = avalon.lib.launch( # noqa: F841
"/usr/bin/env", args=["bash", execfile], environment=env
)