Пример #1
0
 def __init__(self, options, *args, **kwargs):
     super(Reload, self).__init__(*args, **kwargs)
     self.reload, self.options = cleanOptions(options)
     if not self.reload:
         raise RuntimeError(
             'Reload should not be run if --reload has not been passed to '
             'the command as an option.')
     self.process = subprocess.Popen(['hx', 'start_reload'] + self.options)
Пример #2
0
 def __init__(self, options, *args, **kwargs):
     super(Reload, self).__init__(*args, **kwargs)
     self.reload, self.options = cleanOptions(options)
     if not self.reload:
         raise RuntimeError(
             'Reload should not be run if --reload has not been passed to '
             'the command as an option.'
         )
     self.process = subprocess.Popen(
         ['hx', 'start_reload'] + self.options
     )