0

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

enter image description here

Python on both is 3.9.13 64bit.

What am i missing here?

flymg
  • 549
  • 3
  • 19

0 Answers0