blob: 24f3137bf9f9b4202660d38c5db62728303fdad8 [file] [log] [blame]
Mike Frysingerf1ba7ad2022-09-12 05:42:57 -04001# Copyright 2016 The ChromiumOS Authors
Aviv Keshet39853bd2016-09-22 15:12:05 -07002# 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)