feat(resolve): launching with pre imported resolve python console

This commit is contained in:
Jakub Jezek 2020-05-22 18:32:52 +02:00
parent 46c831e585
commit 0b4c4d017b
No known key found for this signature in database
GPG key ID: C4B96E101D2A47F3
3 changed files with 63 additions and 0 deletions

View file

@ -26,6 +26,9 @@ class ResolvePrelaunch(PypeHook):
if not env:
env = os.environ
env["PRE_PYTHON_SCRIPT"] = os.path.normpath(env["PRE_PYTHON_SCRIPT"])
self.log.info(env["PRE_PYTHON_SCRIPT"])
try:
__import__("pype.resolve")
__import__("pyblish")