MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / migrations_module_path

Function migrations_module_path

tortoise/migrations/writer.py:57–61  ·  view source on GitHub ↗
(module_name: str)

Source from the content-addressed store, hash-verified

55
56
57def migrations_module_path(module_name: str) -> Path:
58 module = importlib.import_module(module_name)
59 if not hasattr(module, "__path__"):
60 raise ValueError(f"Migration module {module_name} is not a package")
61 return Path(next(iter(module.__path__)))
62
63
64@dataclass

Callers 2

_disk_migration_namesMethod · 0.90
pathMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…