コード例 #1
0
        def SvcDoRun(self):
            servicemanager.LogMsg(
                servicemanager.EVENTLOG_INFORMATION_TYPE,
                servicemanager.PYS_SERVICE_STARTED,
                (self._svc_name_, ''),
            )

            flexget.main(['daemon', 'start'])
コード例 #2
0
        def SvcDoRun(self):
            servicemanager.LogMsg(
                servicemanager.EVENTLOG_INFORMATION_TYPE, servicemanager.PYS_SERVICE_STARTED, (self._svc_name_, "")
            )

            flexget.main(["daemon", "start"])
コード例 #3
0
ファイル: flexget_vanilla.py プロジェクト: AlinaKay/Flexget
#!/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()
コード例 #4
0
#!/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()