Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [#318] Added {pydir}/share to data dirs.
Browse files Browse the repository at this point in the history
eoyilmaz committed Mar 9, 2024

Verified

This commit was signed with the committer’s verified signature.
henrikvtcodes Henrik VT
1 parent b5d6c25 commit 2e4004f
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions DisplayCAL/config.py
Original file line number Diff line number Diff line change
@@ -91,6 +91,8 @@
os.path.join(os.path.dirname(os.path.dirname(pypath)), "share", "DisplayCAL"),
# venv/lib/python3.x/site-packages/DisplayCAL
pydir,
# venv/share
os.path.join(os.path.dirname(pydir), "share"),
# venv/lib/python3.x/site-packages/DisplayCAL-*.egg/share/DisplayCAL
os.path.join(os.path.dirname(pydir), "share", "DisplayCAL"),
]
2 changes: 1 addition & 1 deletion DisplayCAL/localization.py
Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ def init(set_wx_locale=False):
handle_error(
UserWarning(
"Warning: No language files found. The "
"following places have been searched:\n%s" % "\n".join(langdirs)
"following places have been searched:\n{}".format("\n".join(langdirs))
)
)

2 changes: 1 addition & 1 deletion VERSION_BASE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.9.11
3.9.12
5 changes: 2 additions & 3 deletions tests/data/display_data.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Sample DisplayData class."""
from typing import Dict, List

from wx import Rect


class DisplayData:
"""Sample Display."""
@@ -287,8 +285,9 @@ class DisplayData:
]

@property
def Geometry(self) -> Rect:
def Geometry(self):
"""Return a wx Rect as display geometry."""
from wx import Rect
return Rect(
self.DISPLAY_DATA_1["pos"][0],
self.DISPLAY_DATA_1["pos"][1],

0 comments on commit 2e4004f

Please sign in to comment.