Skip to content
Permalink
Browse files

BF: better error decode from compile script

this is one part of commit 400d611
  • Loading branch information...
peircej committed Feb 12, 2019
1 parent 3383008 commit a01cb2982500c6b2f7aab7974028871668627558
Showing with 2 additions and 1 deletion.
  1. +2 −1 psychopy/app/builder/builder.py
@@ -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)

0 comments on commit a01cb29

Please sign in to comment.
You can’t perform that action at this time.