[Bf-python] python relative imports
Vaclav Klecanda
vencax77 at gmail.com
Fri Sep 2 09:31:49 CEST 2011
Hi all,
I have faced some problems with relative imports. I have blender 2.59 ->
python 3. I have following structure of packages:
io_export_dxf:
....model:
........dxfLibrary.py
........migiusModel.py
In migiusModel I would like import dxfLibrary:
try:
import dxfLibrary as DXF
except Exception:
raise Exception("No dxfLibrary.py module")
but I get the exception ...
Maybe I am doing something wrong, because I am new to Python3 but IMHO there
are not much changes.
Another issue: if I use following syntax: except Exception, p:
when I want to have the excp object I get InvalidSyntaxError.
Does anybody face similar problems? Is there any source related to this in
wiki?
thanks VAsek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20110902/b8dd908c/attachment.html>
More information about the Bf-python
mailing list