Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/tools/testing/selftests/drivers/net/lib/py/remote.py
26305 views
1
# SPDX-License-Identifier: GPL-2.0
2
3
import os
4
import importlib
5
6
_modules = {}
7
8
def Remote(kind, args, src_path):
9
global _modules
10
11
if kind not in _modules:
12
_modules[kind] = importlib.import_module("..remote_" + kind, __name__)
13
14
dir_path = os.path.abspath(src_path + "/../")
15
return getattr(_modules[kind], "Remote")(args, dir_path)
16
17