I created a function in python which I invoke from another file. However, it is getting invoked twice.
The following function is in test.py -
def test_fun():
print("test fun invoked")
I am invoking that function from __init__.py file as follows
from sample.test import test_fun
test_fun()
But test_fun
is getting executed twice.
I am getting the output as-
test fun invoked
test fun invoked
Am I doing something wrong?