Exemplo n.º 1
0
    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
Exemplo n.º 2
0
    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
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)