If you put a .pth
file in the site-packages
directory containing a path, python searches this path for imports. So I have a sth.pth
file there that simply contains:
K:SourcePythonlib
In that directory there are some normal Python modules:
logger.py
fstools.py
...
This allows to directly import these modules from other scripts:
import logger
log = logger.Log()
...
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…