Aviv Keshet | 39853bd | 2016-09-22 15:12:05 -0700 | [diff] [blame^] | 1 | # Copyright 2016 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """Try to set up a chromite virtualenv, and print the import path.""" |
| 6 | |
| 7 | from __future__ import print_function |
| 8 | |
| 9 | from chromite.lib import commandline |
| 10 | |
| 11 | import sys |
| 12 | import pprint |
| 13 | |
| 14 | def GetParser(): |
| 15 | """Creates the argparse parser.""" |
| 16 | parser = commandline.ArgumentParser(description=__doc__) |
| 17 | return parser |
| 18 | |
| 19 | def main(argv): |
| 20 | parser = GetParser() |
| 21 | parser.parse_args(argv) |
| 22 | |
| 23 | print('The import path is:') |
| 24 | pprint.pprint(sys.path) |