jsiverskog · GitHub

Closed

Closed

Conversation

Closed

this is heavily based on the work by Fabien Di Tore <fabien@ditore.ch>.

Open

Closed

Open

anarcat

path = value
# According to SSH documentation if the path is relative,
# we look forward in ~/.ssh
if (not os.path.isabs(path)) and path[0] != '~':
"config file: %s" % filename)
with open(filename) as fd:
parsed_files.append(filename)
self.parse(fd, parsed_files)
# Expand the user home path
path = os.path.expanduser(path)
if parsed_files is None:
parsed_files = []

result = self.config.lookup("example.org")
assert result["hostname"] == "example.org"
assert result["user"] == "exampleuser2"

Open

Read the original on github.com ↗