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

Unified Diff: tools/telemetry/telemetry/core/profile_types.py

Issue 22989006: [telemetry] Change many relative paths to use util.Get*Dir(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/telemetry/core/profile_types.py
diff --git a/tools/telemetry/telemetry/core/profile_types.py b/tools/telemetry/telemetry/core/profile_types.py
index 92a8a777aea9696a2f6393241f5617cd95ee99bf..6ea4ee3465ab071654ff48bd6780758b12f16097 100644
--- a/tools/telemetry/telemetry/core/profile_types.py
+++ b/tools/telemetry/telemetry/core/profile_types.py
@@ -6,6 +6,7 @@ import os
from telemetry.core import discover
from telemetry.core import profile_creator
+from telemetry.core import util
BASE_PROFILE_TYPES = ['clean', 'default']
@@ -60,8 +61,8 @@ def GetProfileDir(profile_type):
profile_type in PROFILE_CREATORS):
return None
- path = os.path.abspath(os.path.join(os.path.dirname(__file__),
- '..', '..', '..', '..', *PROFILE_TYPE_MAPPING[profile_type].split('/')))
+ path = os.path.join(
+ util.GetChromiumSrcDir(), *PROFILE_TYPE_MAPPING[profile_type].split('/'))
assert os.path.exists(path)
return path

Powered by Google App Engine
This is Rietveld 408576698