diff --git a/meson.py b/meson.py index fbca883105fe..7f2c49dba491 100755 --- a/meson.py +++ b/meson.py @@ -17,14 +17,4 @@ from mesonbuild import mesonmain import sys, os -def main(): - thisfile = __file__ - if not os.path.isabs(thisfile): - thisfile = os.path.normpath(os.path.join(os.getcwd(), thisfile)) - if __package__ == '': - thisfile = os.path.dirname(thisfile) - - sys.exit(mesonmain.run(thisfile, sys.argv[1:])) - -if __name__ == '__main__': - main() +sys.exit(mesonmain.run(sys.argv[0], sys.argv[1:]))