I have the following files:
t.py:
def foo():
print("foo")
folder/t.py:
def foo():
print("bar")
folder/main.py:
import t
if __name__ == "__main__":
t.foo()
when I run it on the command line with python -m folder.main it prints "foo" but I actually want to import folder/t.py so that it prints "bar" instead. How can I do that?