mirror of
https://github.com/adlerosn/rede-especificacoes-tecnicas-em-redes
synced 2024-07-05 17:00:12 +00:00
15 lines
386 B
Python
Executable File
15 lines
386 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- encoding: utf-8 -*-
|
|
|
|
from pathlib import Path
|
|
|
|
from .documents import fromFile as DocumentFromFile
|
|
from .document_finder import classes as docClasses
|
|
|
|
|
|
def main():
|
|
rootsrc, rootname = Path("rootdoc.txt").read_text().splitlines()
|
|
docfn = docClasses[rootsrc](rootname).cached()
|
|
doc = DocumentFromFile(str(docfn)).parse()
|
|
print(doc[:50]+'...')
|