This commit is contained in:
parent
98ca70fdce
commit
7c72d6aeef
1 changed files with 6 additions and 19 deletions
25
build.py
25
build.py
|
@ -1,36 +1,23 @@
|
||||||
#! /usr/bin/env -S python3 -B
|
#! /usr/bin/env -S python3 -B
|
||||||
|
|
||||||
import os
|
|
||||||
import shutil
|
|
||||||
import subprocess
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
|
from rwx.prj import Project
|
||||||
from rwx.prj.sphinx import SphinxProject
|
from rwx.prj.sphinx import SphinxProject
|
||||||
|
|
||||||
TRAVAUX = [
|
PROJECTS = [
|
||||||
# "blanc",
|
# "blanc",
|
||||||
# "probatoire",
|
# "probatoire",
|
||||||
# "thesis",
|
# "thesis",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def others():
|
if __name__ == "__main__":
|
||||||
travaux = os.path.join("cnam.marc")
|
root = Path(__file__).resolve().parent / "cnam.marc"
|
||||||
for travail in TRAVAUX:
|
|
||||||
subprocess.call([os.path.join(travaux, travail, "build.py")])
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
file = os.path.realpath(__file__)
|
|
||||||
directory = os.path.dirname(file)
|
|
||||||
os.chdir(directory)
|
|
||||||
# projects
|
# projects
|
||||||
others()
|
for project in PROJECTS:
|
||||||
|
Project(root / project).build()
|
||||||
# project
|
# project
|
||||||
sys.exit(SphinxProject(Path(__file__)).build())
|
sys.exit(SphinxProject(Path(__file__)).build())
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue