31 lines
845 B
Python
31 lines
845 B
Python
import os
|
|
import sys
|
|
|
|
# Directorio base desde donde se ejecuta mkdocs
|
|
base_dir = os.getcwd()
|
|
print(f"Directorio base: {base_dir}\n")
|
|
|
|
# Rutas a comprobar
|
|
snippet_paths = [
|
|
"sections/oggui-grupos.md",
|
|
"sections/oggui-acciones.md",
|
|
"sections/oggui-cierre.md"
|
|
]
|
|
|
|
# Posibles directorios base para los snippets
|
|
base_paths = [
|
|
base_dir,
|
|
os.path.join(base_dir, "docs"),
|
|
os.path.join(base_dir, "docs/es/administration"),
|
|
os.path.join(base_dir, "docs/en/administration"),
|
|
# Añade más rutas si es necesario
|
|
]
|
|
|
|
print("Comprobando rutas de snippets:")
|
|
for base_path in base_paths:
|
|
print(f"\nDesde base: {base_path}")
|
|
for snippet in snippet_paths:
|
|
full_path = os.path.join(base_path, snippet)
|
|
exists = os.path.exists(full_path)
|
|
print(f" - {full_path} {'EXISTE' if exists else 'NO EXISTE'}")
|