diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2017-11-22 00:47:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-22 00:47:20 +0200 |
commit | d882b6fbd466940d452cfaa890bd9270e10a93b4 (patch) | |
tree | d1ed9d893da50afb4ed3e6f031da91949f1d67ee /msi/createmsi.py | |
parent | fdb48a3a0f0425a6bd4a71a2e004479080955df8 (diff) | |
parent | f9e88cd37e6babc1de476398f54a540f3eeca1c7 (diff) | |
download | meson-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/createmsi.py')
-rwxr-xr-x | msi/createmsi.py | 4 |
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") |