The following code works on macOS, but not on Windows:
src
┣ __init__.py
┣ greeter.py
┗ helper.py
greeter.py
from src.helper import world
def hello():
print("Hello {}".format(world()))
if __name__ == "__main__":
hello()
helper.py
def world():
return "World"
Error on Windows: ModuleNotFoundError
Python on both is 3.9.13 64bit.
What am i missing here?