I am a newbie to python. I do have two modules. Model M1 and module m2. From m2 , i need to refer m1 and m2 and m1 resides at two different locations in disk.
When I am trying to import m1 before executing m2 , of course it’s saying can’t find m1. How I can point my interpreter to m1’s location.
Thanks J
It’s not entirely clear what your specific problem is (give more details!), but you may find these useful (further Googling will help you reach concrete answers for your specific needs):
However, if m2 depends on m1, and they’re distributed together, perhaps it’s a better idea to place them in the same directory tree using packages.