current_code = dsajJasndfD
is in second file also. I need to import it by using local current_code (it will be changing after every program restart).
So here is my question: How can I import module, when I don't know its, but have it name assigned as local variable?
current_code = dsajJasndfD
import database as db
key_list = list(db.current_code.keys())
value_list = list(db.current_code.values())