python-reflexion/01-importers/demo_dns.py
2025-10-21 20:38:10 +02:00

11 lines
276 B
Python

import sys
import dns_importer
sys.path.append('dns+pylib://_pylib.hannaeko.eu')
sys.path_hooks.append(dns_importer.DnsImporter)
from test_pkg.test_module import hello
hello()
print(hello.__module__)
print(sys.modules['test_pkg'])
print(sys.modules['test_pkg.test_module'])