Fix install when run with meson.exe. Closes #3988.

pull/3905/head
Jussi Pakkanen 6 years ago committed by Nirbheek Chauhan
parent 475efb9354
commit 15fb284395
  1. 7
      mesonbuild/minstall.py

@ -20,7 +20,12 @@ from .scripts import depfixer
from .scripts import destdir_join from .scripts import destdir_join
from .mesonlib import is_windows, Popen_safe from .mesonlib import is_windows, Popen_safe
from .mtest import rebuild_all from .mtest import rebuild_all
from __main__ import __file__ as main_file try:
from __main__ import __file__ as main_file
except ImportError:
# Happens when running as meson.exe which is native Windows.
# This is only used for pkexec which is not, so this is fine.
main_file = None
selinux_updates = [] selinux_updates = []

Loading…
Cancel
Save