MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / my_import

Function my_import

src/ext/makerbot_pyserial/serialjava.py:12–17  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

10from makerbot_pyserial.serialutil import *
11
12def my_import(name):
13 mod = __import__(name)
14 components = name.split('.')
15 for comp in components[1:]:
16 mod = getattr(mod, comp)
17 return mod
18
19
20def detect_java_comm(names):

Callers 1

detect_java_commFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected