21
21
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
# @PACKAGE_NAME@ version @PACKAGE_VERSION@@bzr_info@
24
# @PACKAGE_NAME@ version @PACKAGE_VERSION@
26
27
if __name__ == "__main__":
29
from os.path import abspath, exists, join
31
# add regular site-package directories (for debian)
33
if path.endswith('dist-packages'):
34
sys.path.append( path[:-13] + 'site-packages' )
30
from os.path import join, abspath, exists
36
32
# check for a development source directory and use that if it's there
37
33
PACKAGE_DIR = join( abspath( sys.path[ 0 ] ), "..", "lib" )
38
if exists( join( PACKAGE_DIR, "stdhome", "the.py" ) ):
39
print( "!!! using development packages !!!", file=sys.stderr )
34
if exists( join( PACKAGE_DIR, "stdhome", "stdhome.py" ) ):
35
print >> sys.stderr, "!!! using development packages !!!"
40
36
sys.path.insert( 0, PACKAGE_DIR )
44
40
# start main program
45
from stdhome import the
46
from stdhome.program import Program
47
the.program = Program( "@PACKAGE_VERSION@@bzr_info@" )
41
from stdhome.stdhome import *
42
Stdhome( "@PACKAGE_VERSION@" ).run()