blob: fc806121247f82634004fb34e6b46940dc4c66eb [file] [log] [blame]
Aviv Keshet39853bd2016-09-22 15:12:05 -07001# 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
Aviv Keshet39853bd2016-09-22 15:12:05 -07007import sys
8import pprint
9
Mike Frysinger6db648e2018-07-24 19:57:58 -040010from chromite.lib import commandline
11
12
Aviv Keshet39853bd2016-09-22 15:12:05 -070013def GetParser():
14 """Creates the argparse parser."""
15 parser = commandline.ArgumentParser(description=__doc__)
16 return parser
17
Mike Frysinger6db648e2018-07-24 19:57:58 -040018
Aviv Keshet39853bd2016-09-22 15:12:05 -070019def main(argv):
20 parser = GetParser()
21 parser.parse_args(argv)
22
23 print('The import path is:')
24 pprint.pprint(sys.path)