codekingpro/portable-devtools
114k
1"""2Wheel command line tool (enable python -m wheel syntax)3"""4 5from __future__ import annotations6 7import sys8 9 10def main(): # needed for console script11 if __package__ == "":12 # To be able to run 'python wheel-0.9.whl/wheel':13 import os.path14 15 path = os.path.dirname(os.path.dirname(__file__))16 sys.path[0:0] = [path]17 import wheel.cli18 19 sys.exit(wheel.cli.main())20 21 22if __name__ == "__main__":23 sys.exit(main())24 