I have a modules.py file :
global dns_server_ip
def SetVnetGlobalParameters():
dns_server_ip = '192.168.3.120'
And I’m importing this file in say abc.py file
from modules import *
SetVnetGlobalParameters()
print(dns_server_ip)
But ‘dns_server_ip’ is still not accessible.
I want to set global parameters through Function only. Any help would be greatly appreciated! Thanks..