def modurl(qualname):
obj, module = get_obj_module(qualname)<EOL>github_url = github_url1<EOL>try:<EOL><INDENT>path = PurePosixPath(Path(module.__file__).resolve().relative_to(project_dir))<EOL><DEDENT>except ValueError:<EOL><INDENT>github_url = github_url2<EOL>path = '<STR_LIT:/>'.join(module.__file__.split('<STR_LIT:/>')[-<NUM_LIT:2>:])<EOL><DEDENT>start, end = get_linenos(obj)<EOL>fragment = '<STR_LIT>'.format(start, end) if start and end else '<STR_LIT>'<EOL>return '<STR_LIT>'.format(github_url, path, fragment)<EOL>
Get the full GitHub URL for some object’s qualname.