I have read all of the answers of the following link : Importing variables from another file? I have tried what they say, to import my variables from one file to another by tapping :
from file1 import *
or
from file1 import var1
Unfortunately it does not work as intented because I am not importing the variable only but the whole file1. That is not the purpose (I really only want var1, the script is rather big) so I am wondering if I am the only one noticing this behaviour as everybody there looks satisfied with the answer.
Thanks for your help.