[Bf-python] mod_ai2obj.py was modified to match for both win32/mac file type.

Willian Padovani Germano wgermano at ig.com.br
Sat Nov 20 20:07:29 CET 2004


jms wrote:

> mod_ai2obj.py was modified to work with both win32/mac file type.
> It did a test with the file posted on the bug tracker forum. it seems 
> to work
> but I need help for real tests on mac os.
>
> http://jmsoler.free.fr/util/blenderfile/py/mod_ai2obj2.py

BTW jms and all,

About the issue with unix / dos / mac line endings: I recall something 
was introduced in Python some releases ago to solve it and this week I 
took a better look at it: "universal line endings":

If scripts simply open files in mode 'U' or 'rU' for reading, any of 
'\n', '\r' and '\r\n' are seen as '\n' by the program and so there 
should be no trouble with line endings.  Worth testing as a general 
solution.

http://docs.python.org/lib/built-in-funcs.html#l2h-25
http://python.active-venture.com/whatsnew/node7.html

-- 
Willian




More information about the Bf-python mailing list