mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Subprocess in app launch is again stored to variable. Now it is _popen and added comment why it is there.
This commit is contained in:
parent
f852d664e6
commit
305ba756ba
1 changed files with 10 additions and 5 deletions
|
|
@ -290,7 +290,10 @@ class AppAction(BaseHandler):
|
||||||
|
|
||||||
# Run SW if was found executable
|
# Run SW if was found executable
|
||||||
if execfile is not None:
|
if execfile is not None:
|
||||||
avalonlib.launch(
|
# Store subprocess to varaible. This is due to Blender launch
|
||||||
|
# bug. Please make sure Blender >=2.81 can be launched before
|
||||||
|
# remove `_popen` variable.
|
||||||
|
_popen = avalonlib.launch(
|
||||||
executable=execfile, args=[], environment=env
|
executable=execfile, args=[], environment=env
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
@ -323,7 +326,7 @@ class AppAction(BaseHandler):
|
||||||
'message': "No executable permission - {}".format(
|
'message': "No executable permission - {}".format(
|
||||||
execfile)
|
execfile)
|
||||||
}
|
}
|
||||||
pass
|
|
||||||
else:
|
else:
|
||||||
self.log.error('Launcher doesn\'t exist - {}'.format(
|
self.log.error('Launcher doesn\'t exist - {}'.format(
|
||||||
execfile))
|
execfile))
|
||||||
|
|
@ -331,10 +334,13 @@ class AppAction(BaseHandler):
|
||||||
'success': False,
|
'success': False,
|
||||||
'message': "Launcher doesn't exist - {}".format(execfile)
|
'message': "Launcher doesn't exist - {}".format(execfile)
|
||||||
}
|
}
|
||||||
pass
|
|
||||||
# Run SW if was found executable
|
# Run SW if was found executable
|
||||||
if execfile is not None:
|
if execfile is not None:
|
||||||
avalonlib.launch(
|
# Store subprocess to varaible. This is due to Blender launch
|
||||||
|
# bug. Please make sure Blender >=2.81 can be launched before
|
||||||
|
# remove `_popen` variable.
|
||||||
|
_popen = avalonlib.launch(
|
||||||
'/usr/bin/env', args=['bash', execfile], environment=env
|
'/usr/bin/env', args=['bash', execfile], environment=env
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
|
@ -343,7 +349,6 @@ class AppAction(BaseHandler):
|
||||||
'message': "We didn't found launcher for {0}"
|
'message': "We didn't found launcher for {0}"
|
||||||
.format(self.label)
|
.format(self.label)
|
||||||
}
|
}
|
||||||
pass
|
|
||||||
|
|
||||||
# Change status of task to In progress
|
# Change status of task to In progress
|
||||||
presets = config.get_presets()["ftrack"]["ftrack_config"]
|
presets = config.get_presets()["ftrack"]["ftrack_config"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue