Lines Matching refs:modname
15 def need(restype, resid, filename=None, modname=None):
19 (default: modname with .rsrc appended) either in the same folder as
20 where modname was loaded from, or otherwise across sys.path.
24 if modname is None and filename is None:
25 raise ArgumentError, "Either filename or modname argument (or both) must be given"
44 if '.' in modname:
45 filename = modname.split('.')[-1] + '.rsrc'
47 filename = modname + '.rsrc'
51 if modname == '__main__':
54 if modname in sys.modules:
55 mod = sys.modules[modname]
117 need('Estr', 1, filename="errors.rsrc", modname=__name__)