Skip to content

I'm a noob and not sure what this part means #316

Discussion options

You must be logged in to vote

from . import X is something used in packages
You can make packages in your code by simply making a subfolder and putting files in it.
When you see such code, it's basically the same as from <thismodule> import X

Further reading: https://blog.finxter.com/python-dot-relative-import/ (do ignore the random "cheat sheet" popup on the site)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by IAmTomahawkx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.0 TwitchIO 2.0
3 participants