ó o”ţfc@s+dZddlZd„Zdd„ZdS(s-Backport of importlib.import_module from 3.x.i˙˙˙˙NcCs’t|dƒstdƒ‚nt|ƒ}xSt|ddƒD]?}y|jdd|ƒ}Wq=tk r{tdƒ‚q=Xq=Wd|| |fS( s6Return the absolute name of the module to be imported.trindexs'package' not set to a stringii˙˙˙˙t.is2attempted relative import beyond top-level packages%s.%s(thasattrt ValueErrortlentxrangeR(tnametpackagetleveltdottx((s*/usr/lib64/python2.7/importlib/__init__.pyt _resolve_names  cCsƒ|jdƒrn|s$tdƒ‚nd}x(|D] }|dkrGPn|d7}q1Wt||||ƒ}nt|ƒtj|S(sŢImport a module. The 'package' argument is required when performing a relative import. It specifies the package to use as the anchor point from which to resolve the relative import to an absolute import. Rs/relative imports require the 'package' argumentii(t startswitht TypeErrorR t __import__tsystmodules(RRRt character((s*/usr/lib64/python2.7/importlib/__init__.pyt import_modules   (t__doc__RR tNoneR(((s*/usr/lib64/python2.7/importlib/__init__.pyts