(py_path)
return py_path.replace("/", ".").rstrip(".py")
Transform a python file path to module format.
Transform a python file path to module format.
Transform a python file path to module format .
def path_to_module_format(py_path):
  """Transform a python file path to module format."""
  return py_path.replace("/", ".").rstrip(".py")
def path_to_module_format ( py_path ) : return py_path . replace ( "/" , "." ) . rstrip ( ".py" )