Make SConstruct look in build_files/scons/tools and import from there, so no more 'import tools.Blender'.

This fixes problem after change to this new location, but with .pyc files still lingering in old tools/
directory that still got imported due to syspath form.
This commit is contained in:
Nathan Letwory 2010-07-14 16:38:09 +00:00
parent 46f89336d6
commit 18c82ce390

@ -47,19 +47,18 @@ import re
from tempfile import mkdtemp
# needed for importing tools
sys.path.append(os.path.join(".", "build_files", "scons"))
sys.path.append(os.path.join(".", "build_files", "scons", "tools"))
import tools.Blender
import tools.btools
import tools.bcolors
import Blender
import btools
import bcolors
EnsureSConsVersion(1,0,0)
BlenderEnvironment = tools.Blender.BlenderEnvironment
btools = tools.btools
B = tools.Blender
BlenderEnvironment = Blender.BlenderEnvironment
B = Blender
VERSION = tools.btools.VERSION # This is used in creating the local config directories
VERSION = btools.VERSION # This is used in creating the local config directories
### globals ###
platform = sys.platform