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/bin/validate_plug_ins.py b/bin/validate_plug_ins.py
index 78e65e5..a202d2e 100755
--- a/bin/validate_plug_ins.py
+++ b/bin/validate_plug_ins.py
@@ -1,18 +1,12 @@
#!/usr/bin/env python3
-
-from gen_print import *
-from gen_arg import *
-from gen_plug_in import *
-
import sys
-import os
-
try:
import __builtin__
except ImportError:
import builtins as __builtin__
+import os
# python puts the program's directory path in sys.path[0]. In other words, the user ordinarily has no way
# to override python's choice of a module from its own dir. We want to have that ability in our environment.
@@ -23,6 +17,10 @@
save_path_0 = sys.path[0]
del sys.path[0]
+from gen_print import *
+from gen_arg import *
+from gen_plug_in import *
+
# Restore sys.path[0].
sys.path.insert(0, save_path_0)