Filipe Laíns <la...@riseup.net> added the comment: I believe sysconfig.get_path('purelib') and sysconfig.get_path('platlib') should work for you.
> sysconfig.get_path('purelib') /usr/lib/python3.9/site-packages > sysconfig.get_path('platlib') /usr/lib/python3.9/site-packages (here it's the same path, but it is not guaranteed to be) ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41282> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com