1 #!/usr/bin/env python 2 # Copyright (c) 2012 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 6 import os 7 import sys 8 9 def _SetupPaths(): 10 """Setting path to find pyauto_functional.py.""" 11 tracing_dir = os.path.abspath(os.path.dirname(__file__)) 12 sys.path.append(tracing_dir) 13 sys.path.append(os.path.normpath(os.path.join(tracing_dir, os.pardir))) 14 15 _SetupPaths() 16 17 18 from pyauto_functional import Main 19 20 21 if __name__ == '__main__': 22 Main() 23