3

Find python.exe by program in python

 3 years ago
source link: https://www.codesd.com/item/find-python-exe-by-program-in-python.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Find python.exe by program in python

advertisements

Possible Duplicate:
Getting python.exe path at run time

I have a python app that launches other apps with explicit calls to C:\python25\python.exe, but this doesn't work if the user has 2.6 installed or if they have it installed to another location. There is a %PYTHON% variable for the exe, but this is only available to the user who installed Python (other users don't have this envvar set).

Is there another way to look up this location?


import sys
print sys.executable

Tags python

Related Articles

Can not find Python executable & ldquo; python & rdquo;

When i install iconv with npm got the following error: [email protected] install /root/Dropbox/nodeApps/nodeApp/node_modules/iconv node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "python", you can set the P

CruiseControl.NET Unable to find TF.exe and was not set in Executable Parameter

I have a machine with Win Server 2016 on which I have installed CruiseControl.NET 1.8.5.0. No error during installation. This is the project configuration I am using: <project name="Mainbranch_Deploy" description="Mainbranch, deploy the

MSBuild on CI Server Can not Find AL.exe

I'm having a problem on my TeamCity CI build server where during compilation I get the following error: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2342, 9): error MSB3086: Task could not find "AL.exe" using the SdkToo

Android Problem: Eclipse can not find ADB.exe

First, I know this problem has been asked before, namely : Could not find adb.exe on my tools folder but I tried every answer given and none work (even the accepted answer). My problem is that I updated the Android SDK and now Eclipse cannot find adb

MS Build Community Tasks - SVNCHECKOUT: Can not find svn.exe even if it is in PATH

Note: this question applies to using the MSBUILDCOMMUNITYTASKS add-in for MSBUILD. Specificly the functionality of SVNCHECKOUT and its inablity to find the svn.exe file even when it is located in a directory included in the PATH environment variable.

Where can I find wsdl.exe for Visual Studio 2015?

I'm use Microsoft Visual Studio Community 2015 and I want to generate proxy classes from WSDL. I have published WSDL then I save it locally, then use the utility wsdl.exe. Where can I find wsdl.exe for Visual Studio 2015? I found this utility in only

Can not find ildasm.exe

I recently upgraded to VS 2017 and uninstalled the previous VS 2015. However when I try and build and compile my project I keep getting and error: Microsoft.Build.Utilities.ToolLocationHelper could not find ildasm.exe The project uses Unmanaged Expor

Can not find msbuild.exe in Visual Studio 2010

I'm trying to compile windows project from visual studio 2010 (64) on windows 7 in c++ from command line, but I can't find msbuild.exe, where is it?It should be installed as part of .NET 4... so for example, in c:\Windows\Microsoft.NET\Framework\v4.0

Find the ports a program uses with python

I want to find the ports used by 'plugin-container.exe' so I can monitor what IP addresses interact with that program, The problem is there are two 'plugin-container.exe's. I use Firefox Developer Edition. I already have the monitoring part down but

how to find python-mosquitto version

How do I see what is the version of the python-mosquitto package used by my program? How do I find an old version of python-mosquitto (version 0.15) and remove it? I'm running on Raspberry Pi, raspian0.15 is the version supplied with the raspbian def

waf build system can not find python libraries

i'm trying to build pycairo-1.0 for python3 and getting bad output root@blackenedsun:/home/blackenedsun/Downloads/pycairo-1.10.0# ./waf configure --prefix=/usr ./options() Setting top to : /home/blackenedsun/Downloads/pycairo-1.10.0 Setting out to :

Find Python System Folder Locations

I am trying to find out the location of system folders with Python 3.1. For example "My Documents" = "C:\Documents and Settings\User\My Documents", "Program Files" = "C:\Program Files" etc etc.I found a slightly dif

Can not find Python.h file on CentOS

I am trying to compile a Python extension written in C on a CentOS machine. I am getting error: Python.h: No such file or directory It works fine on ubuntu, where I have python-dev installed using apt-get. I tried installing python-devel using yum in

Unable to find Python library PIL.Google App Engine

Installed the Google App Engine SDK.Python 2.6 perfect. Wanted to go into images, and test locally.Installed PIL Installed Python, then ran the PIL install, worked this time. Things seemed good, but trying to do localhost image manipulation gives: "N

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK