Tzu-ping Chung <uranu...@gmail.com> added the comment: Plot twist: the workaround does not work on Windows.
$ cd SOMEDIR ; Placeholder for a valid directory. $ virtualenv env1 ... $ env\Scripts\python.exe Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import sysconfig >>> print(sysconfig.get_config_var('BINDIR')) SOMDIR\env1\Scripts This points to the virtualenv's BINDIR, not the real Python installation's :( ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue30811> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com