Commit 5ad7487b authored by Lionel's avatar Lionel

Fixing output for generating documentation for pyAgrum.

parent 5dda6602
......@@ -36,7 +36,10 @@ def callSphinx(current):
proc = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT)
out = proc.stdout.readlines()
for line in out:
print(line,end="")
try:
print(line.decode('utf-8'),end="")
except ValueError:
print(str(line),end="")
else:
notif('[' + cmd + ']')
......@@ -49,7 +52,10 @@ def callSphinx(current):
proc = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT)
out = proc.stdout.readlines()
for line in out:
print(line,end="")
try:
print(line.decode('utf-8'),end="")
except ValueError:
print(str(line),end="")
else:
notif('[' + cmd + ']')
safe_cd(current, "..")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment