Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(371)

Side by Side Diff: tools/chrome_proxy/live_tests/pagesets/__init__.py

Issue 2958093002: [Perf] Update references to telemetry.core.discover (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import inspect 5 import inspect
6 import os 6 import os
7 import sys 7 import sys
8 8
9 from telemetry.core import discover
10 from telemetry import story 9 from telemetry import story
11 10
11 from py_utils import discover
12 12
13 # Import all submodules' StorySet classes. 13 # Import all submodules' StorySet classes.
14 start_dir = os.path.dirname(os.path.abspath(__file__)) 14 start_dir = os.path.dirname(os.path.abspath(__file__))
15 top_level_dir = os.path.abspath(os.path.join(start_dir, os.pardir, os.pardir)) 15 top_level_dir = os.path.abspath(os.path.join(start_dir, os.pardir, os.pardir))
16 base_class = story.StorySet 16 base_class = story.StorySet
17 for cls in discover.DiscoverClasses( 17 for cls in discover.DiscoverClasses(
18 start_dir, top_level_dir, base_class).values(): 18 start_dir, top_level_dir, base_class).values():
19 setattr(sys.modules[__name__], cls.__name__, cls) 19 setattr(sys.modules[__name__], cls.__name__, cls)
20 20
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698