Re-land: C++ readability review
[chromium-blink-merge.git] / tools / perf / page_sets / __init__.py
blob36a23b43274917573f2ba939d7e0eeffdddd5422
1 # Copyright 2014 The Chromium 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.
5 import inspect
6 import os
7 import sys
9 from telemetry.core import discover
10 from telemetry.page import page_set
13 # Import all submodules' PageSet classes.
14 start_dir = os.path.dirname(os.path.abspath(__file__))
15 top_level_dir = os.path.dirname(start_dir)
16 base_class = page_set.PageSet
17 for cls in discover.DiscoverClasses(
18 start_dir, top_level_dir, base_class).values():
19 setattr(sys.modules[__name__], cls.__name__, cls)