Пример #1
0
import sys

from resources.lib.common import router
from resources.lib.common import utils


if __name__ == "__main__":
    _plugin = sys.argv[0]
    _handle = int(sys.argv[1])
    _params = sys.argv[2][1:]

    with utils.timing(_params):
        router.dispatch(_plugin, _handle, _params)
Пример #2
0
import sys

from resources.lib.common import router
from resources.lib.common import utils

if __name__ == "__main__":
    _handle = int(sys.argv[1])
    _params = sys.argv[2][1:]

    with utils.timing(_params):
        router.dispatch(_handle, _params)