Skip to content

Commit 8fbacf8

Browse files
Investigamerloonghao
authored andcommitted
refactor(ActionList): Added ActionList to __init__ and Session to make ActionList callable from Application or Session object
1 parent dcc3b81 commit 8fbacf8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

photoshop/api/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Import local modules
44
from photoshop.api import constants
55
from photoshop.api.action_descriptor import ActionDescriptor
6+
from photoshop.api.action_list import ActionList
67
from photoshop.api.action_reference import ActionReference
78
from photoshop.api.application import Application
89
from photoshop.api.colors import CMYKColor
@@ -31,6 +32,7 @@
3132
__all__ = [ # noqa: F405
3233
"ActionDescriptor",
3334
"ActionReference",
35+
"ActionList",
3436
"Application",
3537
"constants",
3638
"enumerations",

photoshop/session.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131

3232
# Import local modules
3333
from photoshop.api import ActionDescriptor
34+
from photoshop.api import ActionList
3435
from photoshop.api import ActionReference
3536
from photoshop.api import Application
3637
from photoshop.api import BMPSaveOptions
@@ -122,6 +123,7 @@ def __init__(
122123
self.app: Application = Application(version=ps_version)
123124
self.ActionReference: ActionReference = ActionReference()
124125
self.ActionDescriptor: ActionDescriptor = ActionDescriptor()
126+
self.ActionList: ActionList = ActionList()
125127
self.EventID = EventID
126128
self.SolidColor = SolidColor
127129
self.TextItem = TextItem

0 commit comments

Comments
 (0)