Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

hasienda opened this issue Sep 18, 2012 · 1 comment

Comments

@hasienda
Copy link

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
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants