/stdhome

To get this branch, use:
bzr branch http://bzr.ed.am/stdhome

« back to all changes in this revision

Viewing changes to lib/stdhome/config.py

  • Committer: Tim Marston
  • Date: 2016-02-23 22:37:03 UTC
  • Revision ID: tim@ed.am-20160223223703-sx94svvstwt8xvrb
determine and instantiate repo vcs dynamically; for new repos, added default vcs
configuration option and allow override in init command arguments; re-added
handling of -v/--verbose arguments to commands and removed from program (since
there may be problems parsing all arguments here)

Show diffs side-by-side

added added

removed removed

20
20
 
21
21
 
22
22
import os, re, errno
23
 
from .file_matcher import FileMatcher
24
 
from . import the
 
23
from file_matcher import FileMatcher
 
24
import the
25
25
 
26
26
 
27
27
class Config:
36
36
        def read_config( self, config_file ):
37
37
 
38
38
                # read file
39
 
                if the.verbose >= 1: print("reading config: %s" % ( config_file ))
 
39
                if the.verbose >= 1: print "reading config: %s" % ( config_file )
40
40
                file = os.path.expanduser( config_file )
41
41
                try:
42
42
                        with open( file ) as f: