From 0178cce4eebf82b7af05ff042d09b3ce3ad5b3ff Mon Sep 17 00:00:00 2001 From: Lars Karlitski Date: Thu, 13 Jun 2019 16:04:42 +0200 Subject: [PATCH] osbuild: make --input and --output absolute paths --- osbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osbuild b/osbuild index 8d4937fc..93794a15 100755 --- a/osbuild +++ b/osbuild @@ -149,9 +149,9 @@ if __name__ == "__main__": parser = argparse.ArgumentParser(description="Build operating system images") parser.add_argument("pipeline_path", metavar="PIPELINE", help="json file containing the pipeline that should be built") - parser.add_argument("--input", dest="input_dir", metavar="DIRECTORY", + parser.add_argument("--input", dest="input_dir", metavar="DIRECTORY", type=os.path.abspath, help="provide the contents of DIRECTORY to the first stage") - parser.add_argument("--output", dest="output_dir", metavar="DIRECTORY", + parser.add_argument("--output", dest="output_dir", metavar="DIRECTORY", type=os.path.abspath, help="provide the empty DIRECTORY as output argument to the last stage") parser.add_argument("--sit", action="store_true", help="keep the build environment up when a stage failed")