Open BigRoy opened 7 years ago
Thanks @BigRoy.
I also had some thoughts on this, where the (new and unused) Session
object would carry a launch()
method, launching a given application within the Session.
I also had some thoughts on this, where the (new and unused) Session object would carry a launch() method, launching a given application within the Session.
Sounds interesting! :)
Issue
Currently the only way in Avalon to set up a project's environment is to actually launch into the application through the Launcher. I believe this should be simplified and separated so that it becomes trivial to initialize an application's environment for an asset in code, e.g. when trying to batch prepare a lot of assets.
This would also increase the readability of launching an application itself, since it would just rely on the library functions for initializing the environment, like
lib.create_environment(asset, task, app)
.I might even want to propose to have this logic be part of the avalon's core API, which would also make it an issue for avalon core.