Lines Matching refs:pkgname
418 pkgname = globals.get('__package__')
419 if pkgname is not None:
420 if not pkgname and level > 0:
429 pkgname = modname
438 pkgname = modname.rpartition('.')[0]
439 globals['__package__'] = pkgname
441 dot = len(pkgname)
444 dot = pkgname.rindex('.', 0, dot)
448 pkgname = pkgname[:dot]
450 return sys.modules[pkgname]
454 "absolute import" % pkgname, RuntimeWarning, 1)
458 "perform relative import" % pkgname)