Merge pull request #1007 from pypeclub/bugfix/PS_remove_unneeded_com_functions

PS fix - removed unwanted functions from pywin32
This commit is contained in:
Milan Kolar 2021-02-12 13:04:40 +01:00 committed by GitHub
commit afafd4c649
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View file

@ -1,5 +1,3 @@
import pythoncom
import pyblish.api
from avalon import photoshop
@ -23,10 +21,6 @@ class CollectInstances(pyblish.api.ContextPlugin):
}
def process(self, context):
# Necessary call when running in a different thread which pyblish-qml
# can be.
pythoncom.CoInitialize()
stub = photoshop.stub()
layers = stub.get_layers()
layers_meta = stub.get_layers_metadata()

View file

@ -1,7 +1,5 @@
import os
import pythoncom
import pyblish.api
@ -13,10 +11,6 @@ class CollectReview(pyblish.api.ContextPlugin):
hosts = ["photoshop"]
def process(self, context):
# Necessary call when running in a different thread which pyblish-qml
# can be.
pythoncom.CoInitialize()
family = "review"
task = os.getenv("AVALON_TASK", None)
subset = family + task.capitalize()