From all the google searches I’ve been told to use, from file import Variable but when i do that, it runs all the code inside of file, and is there a way i can import all the variables not one by one. Ive tried from file import * but that just runs all the code.
You can do
import file Then do
file.variablename when you want to access a variable
Please mark my comment as the answer if it answered your question. Thanks!