/stdhome

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

« back to all changes in this revision

Viewing changes to src/stdhome.in

  • Committer: Tim Marston
  • Date: 2016-05-22 16:45:54 UTC
  • Revision ID: tim@ed.am-20160522164554-n5qhuibvnv0z4tk1
added general reporting to CopyBase and configured it via copy-in and copy-out
walkers (it is required in copy in, during add command); added -R (recursive)
flass to add command; allow vcs backends to augment statically ignored files
list; added detection of out of date working copy to bzr backend;
generate_walk_list() now takes a mandatory directory as the first argument;
don't copy entire subtree during copy of missing directory (as this makes
assumptions about what's in the walk-list)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!@PYTHON@
 
1
#!/usr/bin/python
2
2
#
3
3
# stdhome
4
4
#
26
26
if __name__ == "__main__":
27
27
 
28
28
        import sys
29
 
        from os.path import abspath, exists, join
30
 
 
31
 
        # add regular site-package directories (for debian)
32
 
        for path in sys.path:
33
 
                if path.endswith('dist-packages'):
34
 
                        sys.path.append( path[:-13] + 'site-packages' )
 
29
        from os.path import join, abspath, exists
35
30
 
36
31
        # check for a development source directory and use that if it's there
37
32
        PACKAGE_DIR = join( abspath( sys.path[ 0 ] ), "..", "lib" )
38
33
        if exists( join( PACKAGE_DIR, "stdhome", "the.py" ) ):
39
 
                print( "!!! using development packages !!!", file=sys.stderr )
 
34
                print >> sys.stderr, "!!! using development packages !!!"
40
35
                sys.path.insert( 0, PACKAGE_DIR )
41
36
        else:
42
37
                del PACKAGE_DIR