[PATCH] D113650: [lldb] fix -print-script-interpreter-info on windows

Stella Stamenova via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 11 10:01:22 PST 2021


stella.stamenova 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)
----------------
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.


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