How to import whole script from another script?
Hi Team,
Greetings,
I have created Unit scripts under Project Suite>Project>Advanced>Script in my project. I have 2 scripts, Script1 and Script2 which has 10 def blocks in each.
Now i need to import whole script 'Script1' in 'Script2' wherein i should be able to use the def blocks of Script1 in Script2. How to go about it?
example:
Program which is working
#Script2:
from Script1 import test1(), test2()
def callScript1Methods():
test1()
test2()
==========================
Program which isn't working
#Script2:
import Script1
def callScript1Methods():
test1()
test2()
The program which is working will be complex when there are 100 def blocks in a single script and you need to import all 100 def blocks separately. Can anyone plese let me know is there any alternative way of importing scripts?