__main__.py 455 B

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