File "util.cpython-36.pyc"
Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/usr/lib/python3.6/site-packages/certbot/plugins/__pycache__/util.cpython-36.pyc
File size: 1.79 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit
3
گa @ sn d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z ej
eZe
ee
ddd Ze
ed
ddZdS )
zPlugin utilities. N)List)util)os)STANDARD_BINARY_DIRS)pathreturnc C sF t jj| }g }x0|r@|j| t jj|\}}||d krP qW |S )a Retrieves all possible path prefixes of a path, in descending order
of length. For instance:
* (Linux) `/a/b/c` returns `['/a/b/c', '/a/b', '/a', '/']`
* (Windows) `C:\a\b\c` returns `['C:\a\b\c', 'C:\a\b', 'C:\a', 'C:']`
:param str path: the path to break into prefixes
:returns: all possible path prefixes of given path in descending order
:rtype: `list` of `str`
)r r normpathappendsplit)r prefixprefixes_ r /usr/lib/python3.6/util.pyget_prefixes s
r )cmdr c C s t jd }g }x,tD ]$}||kr|t j| 7 }|j| qW t|rdtjd| t jj| |t jd<