How would I....
yes, its your boy back at it again to ask more stupid questions. anyway, how would i go about using the variables in coolfile.py. also am i importing file right?
no you are not importing the file correctly. You are running coolfile.py, but remember, because you are running it, main.py can't use the variables.
You can import variables, or import them all. To import all the variables,
from coolfile import *
to import them all, but you have to reference them like:
and lastly, to import only specific ones, like the var
from coolfile import x
i recommend using the second option.
To import it use
import coolfile. This will run the file "coolfile.py" which creates the variables inside "main.py".
EDIT: That is actually incorrect use
from coolfile import variable instead.