Revert "Fix for module level import not at top of file"
This reverts commit 47375aa789dcb11ba969895f61dfb12a773e2164.
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
Change-Id: Icc40562b861262d8fb72d68b43654334985eea4d
diff --git a/tools/ct_metrics/gen_csv_results.py b/tools/ct_metrics/gen_csv_results.py
index 3ad9d67..342fe69 100755
--- a/tools/ct_metrics/gen_csv_results.py
+++ b/tools/ct_metrics/gen_csv_results.py
@@ -14,20 +14,19 @@
import re
import stat
import datetime
-
from robot.api import ExecutionResult
from robot.result.visitor import ResultVisitor
from xml.etree import ElementTree
-from gen_arg import *
-from gen_print import *
-from gen_valid import *
-
# Remove the python library path to restore with local project path later.
save_path_0 = sys.path[0]
del sys.path[0]
sys.path.append(os.path.join(os.path.dirname(__file__), "../../lib"))
+from gen_arg import *
+from gen_print import *
+from gen_valid import *
+
# Restore sys.path[0].
sys.path.insert(0, save_path_0)