Skip to content

Commit

Permalink
Fix an issue where enchant 2 uses a different directory (in MacPorts)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsnyman committed Aug 26, 2023
1 parent d8aae14 commit 86e2b34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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'))

0 comments on commit 86e2b34

Please sign in to comment.