aboutsummaryrefslogtreecommitdiff
path: root/msi/createmsi.py
diff options
context:
space:
mode:
Diffstat (limited to 'msi/createmsi.py')
-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")