def get_config_file(self): config_file = __addon__.getSetting('config_file') if config_file == '': oe.notify('OpenVPN', 'No Configuration File Selected', icon='eth') oe.set_busy(0) exit(1) else: return config_file
def main(self): oe.set_busy(1) if self.status(): self.stop() self.start() oe.set_busy(0)