From 87ab362234f761757d96ff1a758ab5c3bd85ed83 Mon Sep 17 00:00:00 2001 From: Richard Lowe Date: Thu, 22 Apr 2010 10:13:38 -0700 Subject: 6915602 onbld python modules should install into python version specific directories --- usr/src/tools/scripts/mapfilechk.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'usr/src/tools/scripts/mapfilechk.py') diff --git a/usr/src/tools/scripts/mapfilechk.py b/usr/src/tools/scripts/mapfilechk.py index ff5c1b24d1..83d3d9d70c 100644 --- a/usr/src/tools/scripts/mapfilechk.py +++ b/usr/src/tools/scripts/mapfilechk.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, fnmatch -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.Mapfile import mapfilechk -- cgit v1.2.3