Sparx Systems Forum

Enterprise Architect => Bugs and Issues => Topic started by: kssw on October 05, 2010, 11:08:38 am

Title: python source code engineering
Post by: kssw on October 05, 2010, 11:08:38 am
hello,

how i can change autocreating process of __init__.py files in my packages?

thx
Title: Re: python source code engineering
Post by: DaveToo on October 06, 2010, 04:05:34 pm
What do you want to change about it?  Maybe something that can be handled by an override or a new Code Generation Template?

CTRL-SHIFT-P gives you the code template editor; so far I've overridden the python Import template to get rid of an extraneous element in some import paths.   These overrides are project-specific, i.e. they are saved with the project and don't affect others.

/me <--- a demo user for a couple of weeks now, and very impressed.
Title: Re: python source code engineering
Post by: kssw on October 06, 2010, 08:44:20 pm
Thank you for answer.

I want to change created __init__.py files, which is creating unfilled. Because I can't use import rightly, in python.

If I'm import created package, I can't use classes and functions in it. Are one need to be imported in __init__.py.

thx