Reputation: 18219
My question is maybe a duplicate but I couldn't find the answer.
How can I source a python file from another python file. Something like:
def fun_1 (arg):
...
...
fun_2 (arg):
...
...
#### MAIN ####
Source the file that contains the function `fun_2`
fun_1('hello')
Upvotes: 2
Views: 946