Example #1
0
 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'))
Example #2
0
 def venvdir(self):
     return os.path.join(rootdir(global_=True), 'projects', self.name)
Example #3
0
 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