forked from bartvdbraak/blender
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:
parent
46f89336d6
commit
18c82ce390
15
SConstruct
15
SConstruct
@ -47,19 +47,18 @@ import re
|
|||||||
from tempfile import mkdtemp
|
from tempfile import mkdtemp
|
||||||
|
|
||||||
# needed for importing tools
|
# 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 Blender
|
||||||
import tools.btools
|
import btools
|
||||||
import tools.bcolors
|
import bcolors
|
||||||
|
|
||||||
EnsureSConsVersion(1,0,0)
|
EnsureSConsVersion(1,0,0)
|
||||||
|
|
||||||
BlenderEnvironment = tools.Blender.BlenderEnvironment
|
BlenderEnvironment = Blender.BlenderEnvironment
|
||||||
btools = tools.btools
|
B = Blender
|
||||||
B = tools.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 ###
|
### globals ###
|
||||||
platform = sys.platform
|
platform = sys.platform
|
||||||
|
Loading…
Reference in New Issue
Block a user