code: def find_module_path():
      
      master_modname = __name__.split(".", 1)[0]
      master_module = sys.modules[master_modname]
      #return os.path.dirname(os.path.realpath(os.path.join(inspect.getsourcefile(endpoints), "..")))
      path = os.path.dirname(inspect.getsourcefile(master_module))
      return path
docs: find where the master module is located