Terry J. Reedy <tjre...@udel.edu> added the comment:

I shortened the title so that 'gdb' shows.  I have never used gdb, but I am 
curious what *is* the path to the python running the python code after 
'python'?  Is it part of or included with gdb?  If so, this seems a gdb bug, as 
it is the responsibility of the running python to correctly locate itself.  We 
are only responsible for the binaries we provide (Windows and macOS) or 
binaries compiled from the unpatched codebase.  (I said 'seems' because it 
could be that gdb compiles with an untested combination of supported compile 
switches.)

----------
nosy: +terry.reedy
title: sys.executable is a non existing path if python is executed from gdb -> 
sys.executable is a false path if python is executed from gdb

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40218>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to