예제 #1
0
파일: ux.py 프로젝트: doYrobot/hendrix
 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
파일: ux.py 프로젝트: pritstift/hendrix
 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
     )