/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/the.py

  • Committer: Tim Marston
  • Date: 2014-03-08 00:40:42 UTC
  • Revision ID: tim@ed.am-20140308004042-j5rco14bjp3teegj
updated .bzrignore

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
 
22
22
import os
 
23
import util
23
24
 
24
25
 
25
26
# the program
32
33
repo = None
33
34
 
34
35
# verbose?
35
 
verbose = False
 
36
verbose = 0
36
37
 
37
38
# data directory
38
39
dir = '~/.stdhome'
39
40
 
40
 
# expanded data dir
41
 
expanded_dir = os.path.expanduser( dir )
42
 
 
43
 
# filesystem dir
44
 
fsdir = '~/'
45
 
 
46
 
# expanded filesystem dir
47
 
expanded_fsdir = os.path.expanduser( fsdir )
 
41
# fully qualified data dir
 
42
full_dir = util.canonicalise_path( dir )
 
43
 
 
44
# metadata directory
 
45
mddir = os.path.join( dir, '.metadata' )
 
46
 
 
47
# fully qualified metadata directory
 
48
full_mddir = util.canonicalise_path( mddir )
 
49
 
 
50
# filesystem directory
 
51
fsdir = '~/test-stdhome'
 
52
 
 
53
# fully qualified filesystem directory
 
54
full_fsdir = util.canonicalise_path( fsdir )
48
55
 
49
56
 
50
57
def set_repo( repo_name ):
51
58
        global repo
52
59
        from repo import Repo
53
 
        repo = Repo( repo_name if repo_name else 'home' )
 
60
        repo = Repo( repo_name if repo_name else 'test' )
54
61