def _get_site_pckg_path(self, filepath): lib_dir = pathd(filepath + '/lib') # Use python* because we don't know which version of python # we're looking for python_dir = lib_dir.dirs('python*')[0] site_pckg_path = python_dir + '/site-packages' return site_pckg_path
def __init__(self, filepath): super(Service, self).__init__(filepath) self.path = pathd(filepath) self.repo_app = Repository(self.path) etc = (self.path / 'etc').abspath() self.repo_config = Repository(etc)