From 3abd5305c2115e72ad85c71caaa576c696c8cc70 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Sat, 20 Feb 2016 00:02:44 +0200 Subject: Default to cwd in mesonconf. Closes #400. --- mesonbuild/mconf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/mconf.py b/mesonbuild/mconf.py index f17442567..67f2a9172 100644 --- a/mesonbuild/mconf.py +++ b/mesonbuild/mconf.py @@ -182,7 +182,7 @@ class Conf: def run(args): args = mesonlib.expand_arguments(args) if not args: - sys.exit(1) + args = [os.getcwd()] options = parser.parse_args(args) if len(options.directory) > 1: print('%s ' % args[0]) -- cgit v1.2.3