main.py:
import second
from second import *
print(second.a)
second.py:
a = "testA"
b = "testB"
Error:
AttributeError: module 'second' has no attribute 'a'
Importing wasn't working on a more complex program. Tried to test it simply and it's not working.
Inside the project folder, there are the other .py
files as well as a __pycache__
folder
Doing ↓ doesn't work either:
from second import a, b