import sys sys.path.append("..") import os from ssh_config_utils.parser import parse_config_text from constants import user_ssh_config_path with open(user_ssh_config_path) as your_ssh_config_file: text = your_ssh_config_file.read() data = parse_config_text(text)