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)
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 )