blob: 50ba43a366b9449215efc3f782ae1d7ab81d7f9b [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 pprint
Mike Frysinger807d8282022-04-28 22:45:17 -04008import sys
Aviv Keshet39853bd2016-09-22 15:12:05 -07009
Mike Frysinger6db648e2018-07-24 19:57:58 -040010from chromite.lib import commandline
11
12
Aviv Keshet39853bd2016-09-22 15:12:05 -070013def GetParser():
Alex Klein1699fab2022-09-08 08:46:06 -060014 """Creates the argparse parser."""
15 parser = commandline.ArgumentParser(description=__doc__)
16 return parser
Aviv Keshet39853bd2016-09-22 15:12:05 -070017
Mike Frysinger6db648e2018-07-24 19:57:58 -040018
Aviv Keshet39853bd2016-09-22 15:12:05 -070019def main(argv):
Alex Klein1699fab2022-09-08 08:46:06 -060020 parser = GetParser()
21 parser.parse_args(argv)
Aviv Keshet39853bd2016-09-22 15:12:05 -070022
Alex Klein1699fab2022-09-08 08:46:06 -060023 print("The import path is:")
24 pprint.pprint(sys.path)