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

Import InfoExtractor in extractor/__init__.py and __init__.py #1483

Open
jaimeMF opened this issue Sep 22, 2013 · 2 comments
Open

Import InfoExtractor in extractor/__init__.py and __init__.py #1483

jaimeMF opened this issue Sep 22, 2013 · 2 comments

Comments

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Sep 22, 2013

Currently InfoExtractor can only be imported from youtube_dl/extractor/common.py, should we add it to extractor/__init__.py and __init__.py?

@ocisly
Copy link
Contributor

@ocisly ocisly commented May 26, 2014

@jaimeMF just out of curiosity, what's wrong with importing it from its actual location? adding it to __init__ files seems redundant...

@jaimeMF
Copy link
Collaborator Author

@jaimeMF jaimeMF commented May 27, 2014

It's just that, when using the youtube_dl module, it feels a bit strange to do from youtube_dl.extractor.common import InfoExtractor, I think it would be more natural to just do from youtube_dl import InfoExtractor or, at least, from youtube_dl.extractor import InfoExtractor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.