/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: 2021-07-05 21:01:29 UTC
  • Revision ID: tim@ed.am-20210705210129-gc746mez1vhzobz7
add stage-status command; add common stage notice to helps

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!@PYTHON@
 
1
#!/usr/bin/python3
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
 
29
        from os.path import join, abspath, exists
30
30
 
31
31
        # add regular site-package directories (for debian)
32
32
        for path in sys.path:
36
36
        # check for a development source directory and use that if it's there
37
37
        PACKAGE_DIR = join( abspath( sys.path[ 0 ] ), "..", "lib" )
38
38
        if exists( join( PACKAGE_DIR, "stdhome", "the.py" ) ):
39
 
                print( "!!! using development packages !!!", file=sys.stderr )
 
39
                print("!!! using development packages !!!", file=sys.stderr)
40
40
                sys.path.insert( 0, PACKAGE_DIR )
41
41
        else:
42
42
                del PACKAGE_DIR
43
 
 
 
43
        
44
44
        # start main program
45
45
        from stdhome import the
46
46
        from stdhome.program import Program