get path of python binary that's executing the script
112095
How to get the python.exe location programmatically?
113500
How can I find out which package installed a particular executable?
37977
Determine if relative or absolute path in shell program
46932
How to determine which Python install is being used by the interpreter?
137379
How to get the PID of my script?
49710
Finding the original file of a symbolic link
17301
How can i find the python triggered by the GUI?
17530
Get path of executable
31185
Get path of current script when executed through a symlink
107130
How to get the directory of a package?
81699
How can I determine the OS of the system from within a Lua script?
95193
Find out current working directory of a running process?
6538
How do you properly determine the current script directory?
14486
What is the variable that contains the source file name?
109114
How to know the path of a particular software?
53435
How do I find the location of my Python site-packages directory?
60658
how can i get the executable's current directory in py2exe?