Index: tools/skp/webpages_playback.py |
diff --git a/tools/skp/webpages_playback.py b/tools/skp/webpages_playback.py |
index d5f45d65e6fc1bd9c68c530459ff559b620e701b..8e78e0d31e662fcf56fb46cf5c8b1f1826dd05c4 100644 |
--- a/tools/skp/webpages_playback.py |
+++ b/tools/skp/webpages_playback.py |
@@ -63,7 +63,10 @@ import tempfile |
import time |
import traceback |
-sys.path.insert(0, os.getcwd()) |
+SKIA_DIR = os.path.abspath(os.path.join( |
+ os.path.realpath(os.path.dirname(__file__)), |
+ os.pardir, os.pardir)) |
+sys.path.insert(0, SKIA_DIR) |
from common.py.utils import gs_utils |
from common.py.utils import shell_utils |