#!/usr/bin/env python __revision__ = "$Rev: 139 $" __date__ = "$Date: 2005-03-14 19:28:22 -0500 (Mon, 14 Mar 2005) $" __author__ = "Ryan Tomayko (rtomayko@gmail.com)" __copyright__ = "Copyright 2004-2005, Ryan Tomayko" __license__ = "MIT " try: from kid.run import main except ImportError: # adjust sys.path if we're running directly within a source distribution import sys from os.path import dirname, abspath, join as joinpath from os import access, F_OK bin_dir = dirname(__file__) lib_dir = abspath(joinpath(bin_dir, '..')) if access(joinpath(lib_dir, 'kid', '__init__.py'), F_OK): sys.path.insert(0, lib_dir) from kid.run import main main()