blob: 01976aa668bcd4083556f11d0f22375c8dd7ff19 [file] [log] [blame]
Mike Frysingere58c0e22017-10-04 15:43:30 -04001# -*- coding: utf-8 -*-
Aviv Keshet39853bd2016-09-22 15:12:05 -07002# Copyright 2016 The Chromium OS Authors. All rights reserved.
3# Use of this source code is governed by a BSD-style license that can be
4# found in the LICENSE file.
5
6"""Try to set up a chromite virtualenv, and print the import path."""
7
8from __future__ import print_function
9
Aviv Keshet39853bd2016-09-22 15:12:05 -070010import sys
11import pprint
12
Mike Frysinger6db648e2018-07-24 19:57:58 -040013from chromite.lib import commandline
14
15
Aviv Keshet39853bd2016-09-22 15:12:05 -070016def GetParser():
17 """Creates the argparse parser."""
18 parser = commandline.ArgumentParser(description=__doc__)
19 return parser
20
Mike Frysinger6db648e2018-07-24 19:57:58 -040021
Aviv Keshet39853bd2016-09-22 15:12:05 -070022def main(argv):
23 parser = GetParser()
24 parser.parse_args(argv)
25
26 print('The import path is:')
27 pprint.pprint(sys.path)