aboutsummaryrefslogtreecommitdiff
path: root/msi
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-11-22 00:47:20 +0200
committerGitHub <noreply@github.com>2017-11-22 00:47:20 +0200
commitd882b6fbd466940d452cfaa890bd9270e10a93b4 (patch)
treed1ed9d893da50afb4ed3e6f031da91949f1d67ee /msi
parentfdb48a3a0f0425a6bd4a71a2e004479080955df8 (diff)
parentf9e88cd37e6babc1de476398f54a540f3eeca1c7 (diff)
downloadmeson-d882b6fbd466940d452cfaa890bd9270e10a93b4.zip
meson-d882b6fbd466940d452cfaa890bd9270e10a93b4.tar.gz
meson-d882b6fbd466940d452cfaa890bd9270e10a93b4.tar.bz2
Merge pull request #2498 from mesonbuild/runpython
Add possibility to run Python scripts with current interpreter
Diffstat (limited to 'msi')
-rwxr-xr-xmsi/createmsi.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/msi/createmsi.py b/msi/createmsi.py
index 7f165d8..3ea0958 100755
--- a/msi/createmsi.py
+++ b/msi/createmsi.py
@@ -82,9 +82,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")