Skip to content

Commit

Permalink
BF: better error decode from compile script
Browse files Browse the repository at this point in the history
this is one part of commit 400d611
  • Loading branch information
peircej committed Feb 12, 2019
1 parent 3383008 commit a01cb29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion psychopy/app/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -2236,7 +2236,8 @@ def generateScript(self, experimentPath, target="PsychoPy"):
logging.info(' '.join(cmd))
out = subprocess.check_output(cmd)
if len(out):
print(out) # so that any errors messages in compile are printed
out = out.decode('utf-8-sig').split('\n')
[print(line) for line in out] # so that any errors messages in compile are printed
else:
psyexpCompile.compileScript(infile=self.exp, version=None, outfile=experimentPath)

Expand Down

0 comments on commit a01cb29

Please sign in to comment.