Skip to content

Commit e7c7daa

Browse files
committed
Split pre_build_commands from _get_build_args()
1 parent f62d325 commit e7c7daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx_autobuild/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ def _get_build_args(args):
3232
build_args.extend([os.path.realpath(args.sourcedir), os.path.realpath(args.outdir)])
3333
build_args.extend(args.filenames)
3434

35-
pre_build_commands = [shlex.split(cmd_str) for cmd_str in args.pre_build]
36-
return build_args, pre_build_commands
35+
return build_args
3736

3837

3938
def get_parser():
@@ -174,7 +173,8 @@ def main():
174173
portn = args.port or find_free_port()
175174
server = Server()
176175

177-
build_args, pre_build_commands = _get_build_args(args)
176+
build_args = _get_build_args(args)
177+
pre_build_commands = list(map(shlex.split, args.pre_build))
178178
builder = Builder(
179179
server.watcher,
180180
build_args,

0 commit comments

Comments
 (0)