Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #260 from pypeclub/hotfix/psd-template-missing-pre…
Browse files Browse the repository at this point in the history
…lauch-hook

photoshop launch with template
  • Loading branch information
mkolar authored Jan 20, 2021
2 parents 0c7312e + b248cd3 commit 9a7b12c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions avalon/photoshop/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,16 @@ def safe_excepthook(*args):
traceback.print_exception(*args)


def launch(application):
def launch(application, workfile):
"""Starts the websocket server that will be hosted
in the Photoshop extension.
"""
from avalon import api, photoshop

# check if workfile available and add it to executable
if workfile:
application = " ".join([application, workfile])

api.install(photoshop)
sys.excepthook = safe_excepthook
# Launch Photoshop and the websocket server.
Expand Down Expand Up @@ -159,4 +163,3 @@ def maintained_visibility():
for layer in layers:
stub().set_visible(layer.id, visibility[layer.id])
pass

0 comments on commit 9a7b12c

Please sign in to comment.