Skip to content

Commit

Permalink
run_42-Make-Latex.py: Do not touch html_doctrees_folder
Browse files Browse the repository at this point in the history
  • Loading branch information
marble committed Aug 18, 2019
1 parent 56c89d7 commit 3d342d3
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions 18-Make-and-build/42-Latex/run_42-Make-Latex.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import tct

from os.path import join as ospj, exists as ospe
from tct import deepget

params = tct.readjson(sys.argv[1])
binabspath = sys.argv[2]
Expand Down Expand Up @@ -42,7 +43,7 @@
# --------------------------------------------------

def lookup(D, *keys, **kwdargs):
result = tct.deepget(D, *keys, **kwdargs)
result = deepget(D, *keys, **kwdargs)
loglist.append((keys, result))
return result

Expand Down Expand Up @@ -190,14 +191,25 @@ def execute_cmdlist(cmdlist, cwd=None):
if builder_latex_folder and not ospe(builder_latex_folder):
os.makedirs(builder_latex_folder)

if exitcode == CONTINUE:
html_doctrees_folder = lookup(milestones, 'html_doctrees_folder')
if builder_latex_folder and html_doctrees_folder:
cmdlist = ['rsync', '-av', '--delete',
html_doctrees_folder,
builder_latex_folder]
exitcode, cmd, out, err = execute_cmdlist(cmdlist, cwd=workdir)

if exitcode == CONTINUE:

cmdlist = [
'sphinx-build',
# '-a', # always write all files
'-b', builder,
'-c', confpy_folder,
'-v', '-v', '-v',
]

if html_doctrees_folder:
if 0 and html_doctrees_folder:
cmdlist.extend([
'-d', html_doctrees_folder])

Expand Down

0 comments on commit 3d342d3

Please sign in to comment.