From 5d51bc79c7555e681a0c638da9528458257744ae Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 11 Nov 2017 01:53:23 +0200 Subject: Replaced sys.executable use with the mesonlib equivalent. --- msi/createmsi.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'msi') diff --git a/msi/createmsi.py b/msi/createmsi.py index 7f165d8..4f1fd5b 100755 --- a/msi/createmsi.py +++ b/msi/createmsi.py @@ -17,6 +17,7 @@ import sys, os, subprocess, shutil, uuid from glob import glob import platform +import shutil import xml.etree.ElementTree as ET sys.path.append(os.getcwd()) @@ -82,9 +83,7 @@ class PackageGenerator: modules = [os.path.splitext(os.path.split(x)[1])[0] for x in glob(os.path.join('mesonbuild/modules/*'))] modules = ['mesonbuild.modules.' + x for x in modules if not x.startswith('_')] modulestr = ','.join(modules) - python = 'c:\\Python\python.exe' - if sys.executable: - python = sys.executable + python = shutil.which('python') cxfreeze = os.path.join(os.path.dirname(python), "Scripts", "cxfreeze") if not os.path.isfile(cxfreeze): print("ERROR: This script requires cx_freeze module") -- cgit v1.1