Skip to content

Commit 3805b28

Browse files
authored
docs: Improve portability of brew prefix (#667)
homebrew's prefix can vary - with this minor change, the pkgconfig path should work in more user environments.
1 parent 2e86cce commit 3805b28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ If you don't want to install MySQL server, you can use mysql-client instead:
5959
```bash
6060
$ # Assume you are activating Python 3 venv
6161
$ brew install mysql-client pkg-config
62-
$ export PKG_CONFIG_PATH="/opt/homebrew/opt/mysql-client/lib/pkgconfig"
62+
$ export PKG_CONFIG_PATH="$(brew --prefix)/opt/mysql-client/lib/pkgconfig"
6363
$ pip install mysqlclient
6464
```
6565

0 commit comments

Comments
 (0)