You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
417 B

4 years ago
  1. """
  2. Wheel command line tool (enable python -m wheel syntax)
  3. """
  4. import sys
  5. def main(): # needed for console script
  6. if __package__ == '':
  7. # To be able to run 'python wheel-0.9.whl/wheel':
  8. import os.path
  9. path = os.path.dirname(os.path.dirname(__file__))
  10. sys.path[0:0] = [path]
  11. import wheel.cli
  12. sys.exit(wheel.cli.main())
  13. if __name__ == "__main__":
  14. sys.exit(main())