Forum Discussion

Rajesh2's avatar
Rajesh2
Contributor
8 years ago

How to fetch the variables stored in other scripts

Hi team,

 

I have created a python script with some variables defined in it. How would i retrieve the same variable in other scripts?

 

ex:

#Script1

 

def variable():

  var1=Aliases.PC.FindCustomers

  var2=Aliases.PC.GetCustomers

 

------------------------------------------

 

#Script2

 

from Script1 import variable

def fetchVar():

  variable.var1().Click()

 

 

 variable.var1().Click() isn't working. Is there any other possible way to fetch the variable from other scripts?

3 Replies