We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
pre_build_commands
_get_build_args()
1 parent f62d325 commit e7c7daaCopy full SHA for e7c7daa
sphinx_autobuild/__main__.py
@@ -32,8 +32,7 @@ def _get_build_args(args):
32
build_args.extend([os.path.realpath(args.sourcedir), os.path.realpath(args.outdir)])
33
build_args.extend(args.filenames)
34
35
- pre_build_commands = [shlex.split(cmd_str) for cmd_str in args.pre_build]
36
- return build_args, pre_build_commands
+ return build_args
37
38
39
def get_parser():
@@ -174,7 +173,8 @@ def main():
174
173
portn = args.port or find_free_port()
175
server = Server()
176
177
- build_args, pre_build_commands = _get_build_args(args)
+ build_args = _get_build_args(args)
+ pre_build_commands = list(map(shlex.split, args.pre_build))
178
builder = Builder(
179
server.watcher,
180
build_args,
0 commit comments