class_docstr: The Rebuilder thread calls the rebuild command whenever an input file has been updated.
  
  It ensures there are never two rebuild commands in flight.
class_docstr_tok: ["The","Rebuilder","thread","calls","the","rebuild","command","whenever","an","input","file","has","been","updated",".","It","ensures","there","are","never","two","rebuild","commands","in","flight","."]
code: def __init__(self):
      self.cond = threading.Condition()
      self.want_rebuild = False
      self.should_continue = True
      super().__init__()
  
imports: import http.server
  import os
  import subprocess
  import sys
  import threading
  import time
  import watchdog
  import watchdog.events
  import watchdog.observers
label_desc: Use image node_id 1 to create a new Rebuilder object from inherited base classes: threading with example: obj = Rebuilder()