mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
support darwin for launching apps
This commit is contained in:
parent
e09cacd9e0
commit
777eea9275
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue