35
# repo name, set by late_init() to an instance of Repo
41
expanded_dir = os.path.expanduser( dir )
46
# expanded filesystem dir
47
expanded_fsdir = os.path.expanduser( fsdir )
50
def set_repo( repo_name ):
44
# fully qualified data dir
45
full_dir = util.canonicalise_path( dir )
48
mddir = os.path.join( dir, '.metadata' )
50
# fully qualified metadata directory
51
full_mddir = util.canonicalise_path( mddir )
56
# fully qualified home directory, set by late_init()
60
config_file = os.path.expanduser( '~/.stdhomerc' )
65
global home_dir, full_home_dir
66
full_home_dir = util.canonicalise_path( home_dir )
67
if verbose >= 2: print "home-dir at " + home_dir
53
repo = Repo( repo_name if repo_name else 'home' )
73
if verbose >= 2: print "repo at " + repo.dir