[mod] tools:build:put conf
This commit is contained in:
parent
4fdd6ddfdd
commit
b1fa87800e
20
tools/build
20
tools/build
|
|
@ -16,6 +16,14 @@ def main():
|
|||
metavar = "<output-directory>",
|
||||
help = "output directory",
|
||||
)
|
||||
argument_parser.add_argument(
|
||||
"-c",
|
||||
"--conf-path",
|
||||
type = str,
|
||||
default = None,
|
||||
metavar = "<conf-path>",
|
||||
help = "path to configuration file",
|
||||
)
|
||||
args = argument_parser.parse_args()
|
||||
|
||||
## exec
|
||||
|
|
@ -28,6 +36,18 @@ def main():
|
|||
" ".join(targets),
|
||||
)
|
||||
)
|
||||
## conf
|
||||
if True:
|
||||
if (args.conf_path is None):
|
||||
pass
|
||||
else:
|
||||
_os.system(
|
||||
"cp %s %s/conf.json"
|
||||
% (
|
||||
args.conf_path,
|
||||
args.output_directory,
|
||||
)
|
||||
)
|
||||
_sys.stdout.write("%s\n" % args.output_directory)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue