15 lines
494 B
Python
15 lines
494 B
Python
import sys, pkgutil, traceback
|
|
print("cwd sys.path[0]:", sys.path[0])
|
|
print("cwd import path:", [p for p in sys.path])
|
|
try:
|
|
import scraper
|
|
print("imported scraper from:", getattr(scraper, "__file__", "namespace"))
|
|
print("is scraper.cli importable?")
|
|
import scraper.cli
|
|
print("scraper.cli OK")
|
|
from scraper.parse_cli import register, handle_parse
|
|
print("parse_cli OK")
|
|
except Exception as e:
|
|
print("IMPORT FAILED:", type(e).__name__, e)
|
|
traceback.print_exc()
|