def __init__(self): QObject.__init__(self, None) self.base_path = get_base_path() if not is_frozen(): self.base_path = os.path.join(get_base_path(), "..") self.request_mgr = None self.core_process = None self.events_manager = EventRequestManager() self.shutting_down = False self.recorded_stderr = "" self.use_existing_core = True self.stop_timer = QTimer() self.stop_timer.timeout.connect(self.check_stopped) self.check_state_timer = QTimer()
def __init__(self, api_port): QObject.__init__(self, None) self.base_path = get_base_path() if not is_frozen(): self.base_path = os.path.join(get_base_path(), "..") self.request_mgr = None self.core_process = None self.api_port = api_port self.events_manager = EventRequestManager(self.api_port) self.shutting_down = False self.recorded_stderr = "" self.use_existing_core = True self.is_core_running = False self.stop_timer = QTimer() self.stop_timer.timeout.connect(self.check_stopped) self.check_state_timer = QTimer()