Fix bugs: remove bogus import and fix path.
BUG=None
TEST=Manual on device
Change-Id: I5859838c68b432bb1fe2bf20ac3a657e22c4f082
Reviewed-on: https://gerrit.chromium.org/gerrit/23876
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Jon Salz <jsalz@chromium.org>
Tested-by: Jon Salz <jsalz@chromium.org>
diff --git a/py/gooftool.py b/py/gooftool.py
index 9c86875..c8ae057 100755
--- a/py/gooftool.py
+++ b/py/gooftool.py
@@ -23,7 +23,6 @@
import crosfw
import hwid_tool
import probe
-import report
import report_upload
import vpd_data
@@ -81,7 +80,8 @@
def FindScript(script_name):
- script_path = os.path.join(os.path.dirname(sys.path[0]), 'sh', script_name)
+ script_path = os.path.join(os.path.dirname(os.path.dirname(
+ os.path.realpath(__file__))), 'sh', script_name)
if not os.path.exists(script_path):
raise Error('Needed script %s does not exist.' % script_path)
return script_path