~jml/+junk/whip

« back to all changes in this revision

Viewing changes to bin/whip

  • Committer: Jonathan Lange
  • Date: 2010-12-23 13:03:46 UTC
  • Revision ID: jml@canonical.com-20101223130346-z81yae0a5fdrvn9w
Initial boring stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/python
 
2
 
 
3
# This makes sure that users don't have to set up their environment
 
4
# specially in order to run these programs from bin/.
 
5
import sys, os
 
6
script_path = os.path.abspath(sys.argv[0])
 
7
if 'lp-whip' in script_path.split(os.sep):
 
8
    sys.path.insert(
 
9
        0, os.path.dirname(os.path.dirname(script_path)))
 
10
### end of preamble
 
11
 
 
12
from lpwhip import main
 
13
 
 
14
main.run()