/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: 2013-12-08 19:28:11 UTC
  • Revision ID: tim@ed.am-20131208192811-r20qj7cgmn4duw11
initial commit; basic app startup and initial command-line processing

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/python
2
 
#
 
1
#!/usr/bin/env python
 
2
 
3
3
# stdhome
4
4
#
5
5
# Copyright (C) 2013 Tim Marston <tim@edm.am>
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", "the.py" ) ):
 
34
        if exists( join( PACKAGE_DIR, "stdhome", "stdhome.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 import the
42
 
        from stdhome.program import Program
43
 
        the.program = Program( "@PACKAGE_VERSION@" )
44
 
        the.program.run()
 
41
        from stdhome.stdhome import *
 
42
        Stdhome( "@PACKAGE_VERSION@" ).run()