File: __main__.py

package info (click to toggle)
feedgenerator 1.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 22,340 kB
  • sloc: python: 1,296; makefile: 4
file content (17 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""
Wheel command line tool (enable python -m wheel syntax)
"""

import sys

def main(): # needed for console script
    if __package__ == '':
        # To be able to run 'python wheel-0.9.whl/wheel':
        import os.path
        path = os.path.dirname(os.path.dirname(__file__))
        sys.path[0:0] = [path]
    import wheel.tool
    sys.exit(wheel.tool.main())

if __name__ == "__main__":
    sys.exit(main())