/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: 2014-01-05 11:51:35 UTC
  • Revision ID: tim@ed.am-20140105115135-6ses87ggwyjrxzfj
added global objects (the.repo, the.program), deployment object and implemented
init command

Show diffs side-by-side

added added

removed removed

31
31
 
32
32
        # check for a development source directory and use that if it's there
33
33
        PACKAGE_DIR = join( abspath( sys.path[ 0 ] ), "..", "lib" )
34
 
        if exists( join( PACKAGE_DIR, "stdhome", "stdhome.py" ) ):
 
34
        if exists( join( PACKAGE_DIR, "stdhome", "the.py" ) ):
35
35
                print >> sys.stderr, "!!! using development packages !!!"
36
36
                sys.path.insert( 0, PACKAGE_DIR )
37
37
        else:
38
38
                del PACKAGE_DIR
39
39
 
40
40
        # start main program
41
 
        from stdhome.stdhome import *
42
 
        Stdhome( "@PACKAGE_VERSION@" ).run()
 
41
        from stdhome import the
 
42
        from stdhome.program import Program
 
43
        the.program = Program( "@PACKAGE_VERSION@" )
 
44
        the.program.run()