Skip to content

Commit f34152b

Browse files
committed
add virtualenvwrapper hooks
1 parent eef9a2c commit f34152b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.virtualenvwrapper/postactivate

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# -*- shell-script -*-
2+
3+
#export PYENCHANT_LIBRARY_PATH=/opt/homebrew/Cellar/enchant/2.6.4/lib/libenchant-2.2.dylib
4+
if [ $(uname) = Darwin ]; then
5+
export PYENCHANT_LIBRARY_PATH=$(brew list enchant | grep 'libenchant-.*\.dylib' | head -n 1)
6+
fi

.virtualenvwrapper/predeactivate

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# -*- shell-script -*-
2+
3+
unset PYENCHANT_LIBRARY_PATH

0 commit comments

Comments
 (0)