in python I have this set of variable
variable.py
#--------------Project 1--------------#
ip_server = '10.10.55.98'
username = 'user_1'
distro = 'debian'
#--------------Project 2--------------#
ip_server = '10.10.55.96'
username = 'user_2'
distro = 'opensuse'
#--------------Project 3--------------#
ip_server = '10.10.55.95'
username = 'user_3'
distro = 'ubuntu'
In the script main.py I just want to import variable of Project 2, how to this?
main.py
from variable import *
ho_to_import_variable_of_project2?
thanks to all for answers anche time to dedicate my question