[PATCH] D113650: [lldb] fix -print-script-interpreter-info on windows
Lawrence D'Anna via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 11 10:08:42 PST 2021
lawrence_danna added inline comments.
================
Comment at: lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp:432
+ elif os.name == 'posix':
+ exename = "python" + str(sys.version_info[0])
+ info['executable'] = os.path.join(sys.prefix, 'bin', exename)
----------------
stella.stamenova wrote:
> lawrence_danna wrote:
> > stella.stamenova wrote:
> > > Python on windows could have a version too (e.g. python3.exe)
> > Under what circumstances? How do we determine if it does? The one from python.org doesn't.
> I am not sure. I *think* it depends on whether you have python 2 and python 3 installed at the same time.
yikes, OK I think I have a better idea.....
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113650/new/
https://reviews.llvm.org/D113650
More information about the llvm-commits
mailing list