diff --git a/script/bootstrap.py b/script/bootstrap.py index 7d8447b88..443a4767f 100755 --- a/script/bootstrap.py +++ b/script/bootstrap.py @@ -34,6 +34,7 @@ def main(): touch_config_gypi() update_atom_shell() + def parse_args(): parser = argparse.ArgumentParser(description='Bootstrap this project') parser.add_argument('-u', '--url', @@ -47,6 +48,7 @@ def parse_args(): help='Prints the output of the subprocesses') return parser.parse_args() + def update_submodules(): execute(['git', 'submodule', 'sync']) execute(['git', 'submodule', 'update', '--init', '--recursive']) diff --git a/script/lib/util.py b/script/lib/util.py index 1f1d5c4fa..ead33ef63 100644 --- a/script/lib/util.py +++ b/script/lib/util.py @@ -19,11 +19,13 @@ def tempdir(prefix=''): atexit.register(shutil.rmtree, directory) return directory + def enable_verbose_execute(): print 'Running in verbose mode' global verbose_mode verbose_mode = True + @contextlib.contextmanager def scoped_cwd(path): cwd = os.getcwd()