Improve detecting of Python EXE Path

This commit is contained in:
Ivan Kravets
2016-08-29 20:20:12 +03:00
parent 023e2978ba
commit f8e70c9362
6 changed files with 23 additions and 24 deletions

View File

@ -12,9 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import re
import sys
import click
import requests
@ -43,7 +41,7 @@ def cli():
r = None
try:
for cmd in cmds:
cmd = [os.path.normpath(sys.executable), "-m"] + cmd
cmd = [util.get_pythonexe_path(), "-m"] + cmd
r = None
r = util.exec_command(cmd)