def _write_conf(self, settings): root = os.path.join(rootdir(global_=True), 'projects') file = os.path.join(root, 'list.conf') settings.write(open(file, 'w'))
def venvdir(self): return os.path.join(rootdir(global_=True), 'projects', self.name)
def _read_conf(self): root = os.path.join(rootdir(global_=True), 'projects') settings = configparser.ConfigParser() settings.read(os.path.join(root, 'list.conf')) return settings