Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion accessible_output2/outputs/auto.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def braille(self, *args, **kwargs):
def output(self, *args, **kwargs):
output = self.get_first_available_output()
if output:
output.speak(*args, **kwargs)
output.output(*args, **kwargs)

def is_system_output(self):
"""Returns True if this output is a system output."""
Expand Down
4 changes: 2 additions & 2 deletions accessible_output2/outputs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ def output(self, text, **options):
RuntimeError: If the requested output doesn't define either speak or braille.
"""
output = False
if self.speak(text, **options):
if self.speak(text, **options) is not False:
output = True
if self.braille(text, **options):
if self.braille(text, **options) is not False:
output = True
if not output:
raise RuntimeError(
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
packages=find_packages(),
package_data={"accessible_output2": ["lib/*"]},
zip_safe=False,
install_requires=["libloader", "platform_utils"],
install_requires=[
"libloader",
"platform_utils @ git+https://github.com/accessibleapps/platform_utils.git"
],
extras_require={
':sys_platform == "win32"': ["pywin32", "libloader"],
':sys_platform == "darwin"': ["appscript"],
Expand Down