Skip to content

Commit

Permalink
Split pre_build_commands from _get_build_args()
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Feb 4, 2024
1 parent f62d325 commit e7c7daa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sphinx_autobuild/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ def _get_build_args(args):
build_args.extend([os.path.realpath(args.sourcedir), os.path.realpath(args.outdir)])
build_args.extend(args.filenames)

pre_build_commands = [shlex.split(cmd_str) for cmd_str in args.pre_build]
return build_args, pre_build_commands
return build_args


def get_parser():
Expand Down Expand Up @@ -174,7 +173,8 @@ def main():
portn = args.port or find_free_port()
server = Server()

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))
builder = Builder(
server.watcher,
build_args,
Expand Down

0 comments on commit e7c7daa

Please sign in to comment.