Skip to content

Commit

Permalink
Clarify convoluted condition with a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rlafuente committed May 1, 2018
1 parent 6fcf824 commit 8de2722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion shoebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,12 @@ def run(src,
create_kwargs = dict(vars=vars, namespace=namespace)
run_args = [src]
run_kwargs = dict(
run_forever=window and (not close_window) and (not bool(outputfile)),
iterations=iterations,
frame_limiter=window,
verbose=verbose,
# run forever except 1. windowed mode is off 2. if --close-window was specified and
# 3. if an output file was indicated
run_forever=window and (not close_window) and (not bool(outputfile)),
)

# Run shoebot in a background thread so we can run a cmdline shell in the current thread
Expand Down

0 comments on commit 8de2722

Please sign in to comment.