def SvcDoRun(self): servicemanager.LogMsg( servicemanager.EVENTLOG_INFORMATION_TYPE, servicemanager.PYS_SERVICE_STARTED, (self._svc_name_, ''), ) flexget.main(['daemon', 'start'])
def SvcDoRun(self): servicemanager.LogMsg( servicemanager.EVENTLOG_INFORMATION_TYPE, servicemanager.PYS_SERVICE_STARTED, (self._svc_name_, "") ) flexget.main(["daemon", "start"])
#!/usr/bin/env python """ Run FlexGet without bootstrap and virtualenv. You need to have all dependencies installed in site-packages when using this. """ import flexget if __name__ == '__main__': flexget.main()
#!/usr/bin/env python import flexget import site if __name__ == '__main__': site.addsitedir( '/storage/.kodi/addons/service.deluge/lib/python2.7/site-packages') flexget.main()