Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix an issue with enchant hook #636

Merged
merged 1 commit into from
Aug 26, 2023
Merged
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
1 change: 1 addition & 0 deletions news/636.update.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix an issue with enchant 2 using a different directory (in MacPorts)
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,7 @@
# In Macports are available mostly hunspell (myspell) and aspell dictionaries.
libdir = os.path.dirname(libenchant) # e.g. /opt/local/lib
sharedir = os.path.join(os.path.dirname(libdir), 'share') # e.g. /opt/local/share
datas.append((os.path.join(sharedir, 'enchant'), 'enchant/share/enchant'))
if os.path.exists(os.path.join(sharedir, 'enchant')):
datas.append((os.path.join(sharedir, 'enchant'), 'enchant/share/enchant'))
if os.path.exists(os.path.join(sharedir, 'enchant-2')):
datas.append((os.path.join(sharedir, 'enchant-2'), 'enchant/share/enchant-2'))