def ResourceScript(path, registry):
 cs = CacheScanner(path, registry)
 glob = {'__file__': path, 'resource': noRsrc, 'registry': registry, 'cache': cs.cache, 'recache': cs.recache}
 try:
  execfile(path, glob, glob)
 except AlreadyCached as ac:
  return ac.args[0]
 rsrc = glob['resource']
 if (cs.doCache and (rsrc is not noRsrc)):
  registry.cachePath(path, rsrc)
 return rsrc

def ResourceScript ( path , registry ) : cs = CacheScanner ( path , registry ) glob = { '__file__' : path , 'resource' : noRsrc , 'registry' : registry , 'cache' : cs . cache , 'recache' : cs . recache } try : execfile ( path , glob , glob ) except AlreadyCached as ac : return ac . args [ 0 ] rsrc = glob [ 'resource' ] if ( cs . doCache and ( rsrc is not noRsrc ) ) : registry . cachePath ( path , rsrc ) return rsrc
i am a normal py file which must define a resource global .