How to run multiple scripts from a script in python -


i have 3 python scripts, script1, script2 , script3 in folder. want run script2 , script3 using script1. how can this?

in script1 need import script2 , script3:

at top of script1:

import script2 import script3 

to run function script2 example:

script2.function() 

you may need add blank file called __init__.py in same directory scripts, python can see directory library.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - How can I echo out this array? -

javascript - IE11 incompatibility with jQuery's 'readonly'? -