From c70a65f61dce9a97502d113f5d8bc810a5e4ed07 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 22 Nov 2022 01:35:45 +0000 Subject: [PATCH] Bug 1736762 - Stop waiting for user input before the creation of ~/.mozbuild . r=firefox-build-system-reviewers,ahochheiden Differential Revision: https://phabricator.services.mozilla.com/D162638 --- build/mach_initialize.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/build/mach_initialize.py b/build/mach_initialize.py index 2d9918d666c6..8b6164ac63c2 100644 --- a/build/mach_initialize.py +++ b/build/mach_initialize.py @@ -30,11 +30,9 @@ on the filesystem. The following directory will be created: {} -If you would like to use a different directory, hit CTRL+c, set the -MOZBUILD_STATE_PATH environment variable to the directory you'd like to -use, and run Mach again. - -Press ENTER/RETURN to continue or CTRL+c to abort. +If you would like to use a different directory, rename or move it to your +desired location, and set the MOZBUILD_STATE_PATH environment variable +accordingly. """.strip() @@ -586,11 +584,6 @@ def _create_state_dir(): if not os.path.exists(state_dir): if not os.environ.get("MOZ_AUTOMATION"): print(STATE_DIR_FIRST_RUN.format(state_dir)) - try: - sys.stdin.readline() - print("\n") - except KeyboardInterrupt: - sys.exit(1) print("Creating default state directory: {}".format(state_dir))