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