0
|
1 #!/usr/bin/env python
|
|
2
|
|
3 """
|
|
4 python PAckage INTrospection
|
|
5 """
|
|
6
|
|
7 import sys
|
|
8 import optparse
|
2
|
9 import tempfile
|
|
10
|
|
11 class InspectPackages(object):
|
|
12 def __init__(self):
|
|
13 pass
|
|
14
|
|
15 def cleanup(self):
|
|
16 pass
|
|
17 __del__ = cleanup
|
0
|
18
|
|
19 def main(args=sys.argv[:]):
|
|
20
|
1
|
21 # parse command line options
|
|
22 usage = '%prog [options]'
|
0
|
23
|
1
|
24 # description formatter
|
|
25 class PlainDescriptionFormatter(optparse.IndentedHelpFormatter):
|
|
26 def format_description(self, description):
|
|
27 if description:
|
|
28 return description + '\n'
|
|
29 else:
|
|
30 return ''
|
|
31
|
|
32 parser = optparse.OptionParser(usage=usage, description=__doc__, formatter=PlainDescriptionFormatter())
|
|
33 options, args = parser.parse_args(args)
|
0
|
34
|
|
35 if __name__ == '__main__':
|
1
|
36 main()
|