[Bf-python] problem with arry of lines

Willian Padovani Germano wgermano at ig.com.br
Sat Aug 7 19:53:34 CEST 2004


Hi,

----- Original Message -----
From: "jmsoler" <jmsoler at free.fr>
To: <bf-python at blender.org>
Sent: Thursday, August 05, 2004 5:43 PM
Subject: [Bf-python] problem with arry of lines


(printing lines from a file work fine in standalone Python but not from
Blender)
> Any idea about this ?

The garbled and incomplete output reminds me of printing text that contains
some non-printing chars.  Maybe this: standalone Python uses a program, the
Python shell, to get input and send output.  This program may be fixing
things so the output comes out ok.  But in Blender it's the bare Python
interpreter doing its work, so the console gets non-printing chars.

A way to test this is: instead of printing, collect all lines (or simply use
file.readlines()) and check the length of the list, it should be the same in
or out of Blender, of course.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list