aws_info_helper/__init__.py
def find_local_pem(pem):
    """Given the name of pem file, find its absolute path in ~/.ssh"""
    pem = pem if pem.endswith('.pem') else pem + '.pem'
    dirname = os.path.abspath(os.path.expanduser('~/.ssh'))
    for dirpath, dirnames, filenames in walk(dirname, topdown=True):
        if pem in filenames:
            return os.path.join(dirpath, pem)
Given the name of pem file, find its absolute path in ~/.ssh
Given the name of pem file, find its absolute path in ~/.ssh
Given the name of pem file find its absolute path in ~ / . ssh
def find_local_pem(pem):
    pem = pem if pem.endswith('.pem') else pem + '.pem'
    dirname = os.path.abspath(os.path.expanduser('~/.ssh'))
    for dirpath, dirnames, filenames in walk(dirname, topdown=True):
        if pem in filenames:
            return os.path.join(dirpath, pem)
def find_local_pem ( pem ) : pem = pem if pem . endswith ( '.pem' ) else pem + '.pem' dirname = os . path . abspath ( os . path . expanduser ( '~/.ssh' ) ) for dirpath , dirnames , filenames in walk ( dirname , topdown = True ) : if pem in filenames : return os . path . join ( dirpath , pem )
Given the name of pem file, find its absolute path in ~/.ssh
Given the name of pem file find its absolute path in ~ / . ssh
"""Given the name of pem file, find its absolute path in ~/.ssh"""
pem