I have installed a custom module I created myself for learning. If I do
from my_first_module import test
test.thisprintssomething()
The function will work, but if I do
import my_first_module
test.thisprintssomething()
Python spits out, NameError: name 'test' is not defined. How would I import without using "from"?
EDIT:
I've fixed it myself. I forgot to add an "import test" line to my init.py in my_first_module module.