Repository URL to install this package:
|
Version:
1.0.11 ▾
|
wlanpi-profiler
/
opt
/
wlanpi-profiler
/
lib
/
python3.7
/
site-packages
/
coverage
/
__pycache__
/
execfile.cpython-37.pyc
|
|---|
B
ô¨öþ:B*ã @ sô d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl
mZ ddlm
Z
mZmZmZ ddlmZmZ ddlmZ ddlmZ ddlmZ eeZejjZG d d
d
Zdd ZG d
d dZdd Z dd Z!dd Z"dd Z#dS )zExecute files of Python code.é N)Úenv)ÚCoverageExceptionÚ_ExceptionDuringRunÚNoCodeÚNoSource)Úcanonical_filenameÚpython_reported_file)Úisolate_module)Úcompile_unicode)Úget_python_sourcec @ s e Zd ZdZdd ZdS )ÚDummyLoaderzzA shim for the pep302 __loader__, emulating pkgutil.ImpLoader.
Currently only implements the .fullname attribute
c G s
|| _ d S )N)Úfullname)Úselfr
Ú_args© r ú/build/wlanpi-profiler-7IIg1Q/wlanpi-profiler-1.0.11/debian/wlanpi-profiler/opt/wlanpi-profiler/lib/python3.7/site-packages/coverage/execfile.pyÚ__init__ s zDummyLoader.__init__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r r r r r r s r c
C s¼ yt j | ¡}W n0 tk
r@ } ztt||W dd}~X Y nX |sTtd| |j}|j}|jr¤| d }t j |¡}|std| d| d |j}|j}| d¡d }|||fS )zFind the module named `modulename`.
Returns the file path of the module, the name of the enclosing
package, and the spec.
NzNo module named z .__main__z; z- is a package and cannot be directly executedÚ.r )
Ú importlibÚutilÚ find_specÚImportErrorr ÚstrÚoriginÚnameÚsubmodule_search_locationsÚ
rpartition)Ú
modulenameÚspecÚerrÚpathnameZpackagenameZmod_mainr r r Úfind_module$ s&