1# Copyright (c) 2012 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.
4import os
5import sys
6
7from telemetry.core import discover
8from telemetry.page import page_set
9
10
11# Import all submodules' PageSet classes.
12start_dir = os.path.dirname(os.path.abspath(__file__))
13top_level_dir = os.path.dirname(start_dir)
14base_class = page_set.PageSet
15for cls in discover.DiscoverClasses(
16    start_dir, top_level_dir, base_class).values():
17  setattr(sys.modules[__name__], cls.__name__, cls)
18