Home | History | Annotate | Download | only in bin
      1 #!/usr/bin/env python
      2 # Copyright 2016 The Chromium 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 import os
      6 import sys
      7 
      8 _MISSING_DEPENDENCIES = """
      9 Error importing dependencies. Make sure ggplot and all associated dependencies
     10 are installed.
     11 
     12 Linux:
     13   sudo apt-get install python-pip
     14   pip install ggplot
     15 
     16 Mac:
     17   sudo easy_install pip
     18   pip install ggplot
     19 
     20 Windows:
     21   No idea.
     22 """
     23 
     24 
     25 if __name__ == '__main__':
     26   try:
     27     import ggplot
     28     import pandas
     29   except ImportError, e:
     30     print _MISSING_DEPENDENCIES
     31     sys.exit(1)
     32 
     33   path_to_base = os.path.join(
     34       os.path.dirname(__file__), '..')
     35   sys.path.append(path_to_base)
     36 
     37   from visualize_traces import visualize_traces
     38   sys.exit(visualize_traces.Main())
     39