Let\'s say Python is installed in the location
C:\\TOOLS\\COMMON\\python\\python252
I want to print this location in the outpu
you can use
import sys, os os.path.dirname(sys.executable)
but remember than in Unix systems the "installation" of a program is usually distributed along the following folders: