Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
limbra
limbra
Commits
25e92254
Commit
25e92254
authored
Jun 06, 2016
by
LE GAC Renaud
Browse files
Polish build_version.
parent
08370113
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
build_version.py
build_version.py
+5
-1
No files found.
build_version.py
View file @
25e92254
...
...
@@ -39,6 +39,7 @@ import sys
from
glob
import
glob
from
os.path
import
join
as
opj
from
subprocess
import
call
,
CalledProcessError
,
check_output
from
tempfile
import
TemporaryFile
# constants
...
...
@@ -180,6 +181,7 @@ def build_pdf(doc):
if
not
filename
:
print
"
\n\t
No latex file !
\n
"
os
.
chdir
(
cwd
)
return
try
:
...
...
@@ -188,6 +190,7 @@ def build_pdf(doc):
except
CalledProcessError
:
print
"
\n\t
Failled to generate PDF file !"
print
"
\t
Check LaTeX file in"
,
latexdir
,
"
\n
"
os
.
chdir
(
cwd
)
return
check_output
([
"pdflatex"
,
filename
])
...
...
@@ -684,7 +687,8 @@ def which(cmd, localhost=False):
# local host
if
not
ARGS
.
force_container
or
localhost
:
try
:
out
=
check_output
([
"which"
,
cmd
])
with
TemporaryFile
()
as
fi
:
out
=
check_output
([
"which"
,
cmd
],
stderr
=
fi
)
print
"
\n\t
Command"
,
cmd
,
"found on the localhost"
return
[
out
.
strip
(
"
\n
"
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment