summaryrefslogtreecommitdiffstats
path: root/tools/buildscripts
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-12-02 18:26:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-03 11:58:01 +0100
commitb3455b28810bdbbd8c45aaac9b0aadb7ecaa139a (patch)
tree072625e9975e6d791fa9cee1dd4c7ee62ee9614e /tools/buildscripts
parent87dab59e8e56b47e7a35078a14a87e0f9355af05 (diff)
Python correctness
sys.path.insert(0,... can be harmful, let's not take that chance Change-Id: I00e5c70ba97cddbc596a6a0efb1019a08d3f4ff7 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'tools/buildscripts')
-rwxr-xr-xtools/buildscripts/gyp_qtwebengine4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/buildscripts/gyp_qtwebengine b/tools/buildscripts/gyp_qtwebengine
index cf4e2f683..b49341f15 100755
--- a/tools/buildscripts/gyp_qtwebengine
+++ b/tools/buildscripts/gyp_qtwebengine
@@ -16,9 +16,9 @@ if not os.path.isdir(script_dir):
sys.exit(1)
root_dir = os.path.abspath(os.path.join(os.getcwd(), os.pardir, os.pardir))
-sys.path.insert(0, script_dir)
+sys.path.insert(1, script_dir)
import gyp_helper
-sys.path.insert(0, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
+sys.path.insert(1, os.path.join(chrome_src, 'tools', 'gyp', 'pylib'))
import gyp
# Add paths so that pymod_do_main(...) can import files.