Index: tools/perf/record_wpr |
diff --git a/tools/perf/record_wpr b/tools/perf/record_wpr |
index e12055f216829b8d96bbcfabdd39ca327140adda..5a581bec5e235384a4024bb368217d53138c4fb0 100755 |
--- a/tools/perf/record_wpr |
+++ b/tools/perf/record_wpr |
@@ -7,7 +7,7 @@ import sys |
# Add telemetry to sys.path so that it can be imported below |
# Relative path from this file is ../telemetry |
-_perf_dir = os.path.dirname(__file__) |
+_perf_dir = os.path.dirname(os.path.realpath(__file__)) |
_telemetry_path = os.path.join(_perf_dir, os.pardir, 'telemetry') |
sys.path.append(_telemetry_path) |