[autotest] Change os.path.join use in common.py to be portable.
All uses of |os.path.join("x", "../..")| have been changed into
|os.path.join("x", "..", "..")|.
TEST=syntax check all common.py files, trybot passes HWTest
BUG=None
Change-Id: Ic05a2e375352eab4447ae5b180da750ccbc1b914
Reviewed-on: https://gerrit.chromium.org/gerrit/40312
Tested-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Scott Zawalski <scottz@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Commit-Queue: Alex Miller <milleral@chromium.org>
diff --git a/frontend/afe/json_rpc/common.py b/frontend/afe/json_rpc/common.py
index 1d171c6..c505ee4 100644
--- a/frontend/afe/json_rpc/common.py
+++ b/frontend/afe/json_rpc/common.py
@@ -1,6 +1,6 @@
import os, sys
dirname = os.path.dirname(sys.modules[__name__].__file__)
-autotest_dir = os.path.abspath(os.path.join(dirname, "../../../"))
+autotest_dir = os.path.abspath(os.path.join(dirname, "..", "..", ".."))
client_dir = os.path.join(autotest_dir, "client")
sys.path.insert(0, client_dir)
import setup_modules