This commit is contained in:
Petr Kalis 2020-08-27 19:22:15 +02:00
parent a00b11d31f
commit 06359c6dc3
3 changed files with 5 additions and 6 deletions

View file

@ -61,4 +61,4 @@ class Photoshop(WebSocketRoute):
photoshop.execute_in_main_thread(partial_method)
# Required return statement.
return "nothing"
return "nothing"

View file

@ -164,8 +164,7 @@ class PhotoshopServerStub():
:return: <string> full path with name
"""
res = self.websocketserver.call(
self.client.call
('Photoshop.get_active_document_full_name'))
self.client.call('Photoshop.get_active_document_full_name'))
return res

View file

@ -1,4 +1,4 @@
from pype.api import config, Logger
from pype.api import Logger
import threading
from aiohttp import web
@ -37,8 +37,8 @@ class WebSocketServer():
if websocket_url:
parsed = urllib.parse.urlparse(websocket_url)
port = parsed.port
if not port:
port = 8099 # try default port
if not port:
port = 8099 # fallback
self.app = web.Application()