summaryrefslogtreecommitdiff
path: root/usr/src/tools/scripts/rtichk.py
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2010-04-22 10:13:38 -0700
committerRichard Lowe <richlowe@richlowe.net>2010-04-22 10:13:38 -0700
commit87ab362234f761757d96ff1a758ab5c3bd85ed83 (patch)
tree65ad13adcaca5489457a5ca5b184d6970ed70c13 /usr/src/tools/scripts/rtichk.py
parent704030f4517ac42005a5e3a4cb2fe578c959bfe2 (diff)
downloadillumos-gate-87ab362234f761757d96ff1a758ab5c3bd85ed83.tar.gz
6915602 onbld python modules should install into python version specific directories
Diffstat (limited to 'usr/src/tools/scripts/rtichk.py')
-rw-r--r--usr/src/tools/scripts/rtichk.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr/src/tools/scripts/rtichk.py b/usr/src/tools/scripts/rtichk.py
index f2b6ce8f9a..0bbfa04b3f 100644
--- a/usr/src/tools/scripts/rtichk.py
+++ b/usr/src/tools/scripts/rtichk.py
@@ -21,8 +21,7 @@
#
#
-# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
-# Use is subject to license terms.
+# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
#
#
@@ -31,8 +30,11 @@
import sys, os, getopt
-sys.path.append(os.path.join(os.path.dirname(__file__), '../lib/python'))
-sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
+sys.path.insert(1, os.path.join(os.path.dirname(__file__), "..", "lib",
+ "python%d.%d" % sys.version_info[:2]))
+
+# Allow running from the source tree, using the modules in the source tree
+sys.path.insert(2, os.path.join(os.path.dirname(__file__), '..'))
from onbld.Checks.Rti import rti