in php, i can easily call functions created on other files by just adding the file as include
i have 3 python files - file1,file2,file3
file1 is main and when executed it will only initiate a function which will only require scripts on file2 OR file3
how can i include (or any other ways of importing) file2 and file3 on file1?
| |
|
Welcome to AstaHost - Dear Guest | |
Python Include How To
Started by manuleka, Aug 11 2012 11:18 AM
1 reply to this topic
#2
Posted 22 August 2012 - 09:05 PM
in php, i can easily call functions created on other files by just adding the file as include
i have 3 python files - file1,file2,file3
file1 is main and when executed it will only initiate a function which will only require scripts on file2 OR file3
how can i include (or any other ways of importing) file2 and file3 on file1?
import did the trick
Reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users











