Skip to content

Commit

Permalink
Clear up
Browse files Browse the repository at this point in the history
  • Loading branch information
hao.long authored and Hal committed May 10, 2020
1 parent 4579d1f commit 4d0db61
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/photoshop/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from photoshop.session import Session

__all__ = ["Session"]

__title__ = "photoshop_python_api"
__version__ = "0.12.0"
__author__ = "Long Hao"
Expand Down
3 changes: 3 additions & 0 deletions src/photoshop/api/_text_fonts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from ._core import Photoshop
from .text_font import TextFont
from .errors import PhotoshopPythonAPIError


class TextFonts(Photoshop):
Expand Down Expand Up @@ -36,3 +37,5 @@ def getByName(self, name):
for font in self.app:
if font.name == name:
return TextFont(font)
raise PhotoshopPythonAPIError("Could not find a TextFont named "
f'"{name}"')
3 changes: 2 additions & 1 deletion src/photoshop/api/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,8 @@ def changeProgressText(self, text):
def charIDToTypeID(self, char_id):
return self.app.charIDToTypeID(char_id)

def compareWithNumbers(self, first, second):
@staticmethod
def compareWithNumbers(first, second):
return first > second

def doAction(self, action, action_from):
Expand Down
2 changes: 1 addition & 1 deletion src/photoshop/api/save_options/eps.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Import local modules
from photoshop._core import Photoshop
from .._core import Photoshop


class EPSSaveOptions(Photoshop):
Expand Down

0 comments on commit 4d0db61

Please sign in to comment.