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

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

Issue 103433002: [telemetry] Script for finding all Telemetry dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/util.py
diff --git a/tools/telemetry/telemetry/core/util.py b/tools/telemetry/telemetry/core/util.py
index be8212e659351dfc9cb2a125e4471ef5d36f013d..a7133bad1c7fd0a29cce450ed4aaef8767316252 100644
--- a/tools/telemetry/telemetry/core/util.py
+++ b/tools/telemetry/telemetry/core/util.py
@@ -16,14 +16,14 @@ class TimeoutException(Exception):
def GetBaseDir():
main_module = sys.modules['__main__']
if hasattr(main_module, '__file__'):
- return os.path.dirname(os.path.abspath(main_module.__file__))
+ return os.path.dirname(os.path.realpath(main_module.__file__))
else:
return os.getcwd()
def GetTelemetryDir():
return os.path.normpath(os.path.join(
- __file__, os.pardir, os.pardir, os.pardir))
+ os.path.realpath(__file__), os.pardir, os.pardir, os.pardir))
def GetUnittestDataDir():

Powered by Google App Engine
This is Rietveld 408576698