From the standard python documentation on the web at 
https://docs.python.org/3/library/sys.html, this is a standard read-only 
variable across all python versions:

“A string giving the absolute path of the executable binary for the Python 
interpreter, on systems where this makes sense. If Python is unable to retrieve 
the real path to its executable, sys.executable will be an empty string or 
None.”

HTH

Peter

From: IBM Mainframe Discussion List <[email protected]> On Behalf Of 
Farley, Peter
Sent: Friday, December 13, 2024 5:20 PM
To: [email protected]
Subject: Re: Python SDK Question


The value of `sys.executable` is the string that represents the full path and 
program name of the python that is executing the print statement.



IOW, “/usr/lpp/IBM/cyp/v3r10/pyz/bin/python3” is the program that is executing.



Peter



From: IBM Mainframe Discussion List 
<[email protected]<mailto:[email protected]>> On Behalf Of Steve 
Estle

Sent: Friday, December 13, 2024 4:20 PM

To: [email protected]<mailto:[email protected]>

Subject: Python SDK Question



Hi Everyone,



I have friend/colleague developer who is struggling on some Python SDK for ZOS 
related information.



He's been going "in circles" trying to find a description of below object and 
its properties (other than ".executable").  He's not sure if it is unique to 
the Python SDK environment or not?



$ python3 -c "import sys; print(sys.executable)"



/usr/lpp/IBM/cyp/v3r10/pyz/bin/python3



Anyone have answer or know where to point him to to get answers?



TIA,



Steve Estle

--







This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.





----------------------------------------------------------------------

For IBM-MAIN subscribe / signoff / archive access instructions,

send email to [email protected]<mailto:[email protected]> with 
the message: INFO IBM-MAIN

This message and any attachments are intended only for the use of the addressee 
and may contain information that is privileged and confidential. If the reader 
of the message is not the intended recipient or an authorized representative of 
the intended recipient, you are hereby notified that any dissemination of this 
communication is strictly prohibited. If you have received this communication 
in error, please notify us immediately by e-mail and delete the message and any 
attachments from your system.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to