Hi all,<div>I have faced some problems with relative imports. I have blender 2.59 -> python 3. I have following structure of packages:</div><div><br></div><div>io_export_dxf:</div><div>....model:</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8">........dxfLibrary.py</div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>........migiusModel.py</div><div><br></div><div>In migiusModel I would like import dxfLibrary:</div>
<div><br></div><div><div>try:</div><div>    import dxfLibrary as DXF</div><div>except Exception:</div><div>    raise Exception("No dxfLibrary.py module")</div></div><div><br></div><div>but I get the exception ...</div>
<div><br></div><div>Maybe I am doing something wrong, because I am new to Python3 but IMHO there are not much changes.</div><div>Another issue: if I use following syntax: except Exception, p: </div><div>when I want to have the excp object I get InvalidSyntaxError.</div>
<div><br></div><div>Does anybody face similar problems? Is there any source related to this in wiki?</div><div><br></div><div>thanks VAsek</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><meta http-equiv="content-type" content="text/html; charset=utf-8">