Book a Demo

Author Topic: python source code engineering  (Read 3048 times)

kssw

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
python source code engineering
« on: October 05, 2010, 11:08:38 am »
hello,

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

thx

DaveToo

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: python source code engineering
« Reply #1 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.

kssw

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: python source code engineering
« Reply #2 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
« Last Edit: October 06, 2010, 08:46:05 pm by kssw »