all code in __init__.py is not very nice #2

Open
hasienda opened this Issue Sep 18, 2012 · 1 comment

Projects

None yet

2 participants

@hasienda
Collaborator

Not seen such a code placement. Better keep __init_.py empty and move code to another file, say console.py (following Trac core naming convetions) or similar. You can preserve current way of component activation by keeping a single line in __init__.py like so:

from nukeuserplugin.console import *

@slinkp
Collaborator
slinkp commented Sep 18, 2012

Thanks. I haven't used trac in a while though, so i'm unlikely to do this. if you're interested in the plugin feel free to fork it, take ownership, whatever you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment