Closed RafalBuchner closed 1 week ago
How does it change the output? For me, the output of the script looks as expected?
hey, sorry for delayed response
If you change code in your testExternal.py on this line, to use multiple print statements one after another, for example code = "print(Layer)\nprint('a')\nprint('b')"
and you run it, you will recieve output with multiplied breaklines. Like this:
The Reason is that GSStdOut.setWrite_
method recieves strings that always ends with \n
escape sequence.
Further, method is using python's print
, which by default appends same escape sequence to the end of printed string.
This way we end up with very long terminal output.
this pull request also includes this https://github.com/schriftgestalt/GlyphsSDK/pull/93/commits/c1ae2321adbdeb86f3ced71fd6d1f61b1f2865ab fix that will help throw proper errors while using runScript
This will help in making output more readable