Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/Blender.py')
-rw-r--r--tools/Blender.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/Blender.py b/tools/Blender.py
index 749fa55a833..73ee6bb813d 100644
--- a/tools/Blender.py
+++ b/tools/Blender.py
@@ -323,6 +323,7 @@ def AppIt(target=None, source=None, env=None):
a = '%s' % (target[0])
builddir, b = os.path.split(a)
+ libdir = env['LCGDIR'][1:]
bldroot = env.Dir('.').abspath
binary = env['BINARYKIND']
@@ -355,6 +356,10 @@ def AppIt(target=None, source=None, env=None):
commands.getoutput(cmd)
cmd = 'cp %s/bin/.blender/.Blanguages %s/%s.app/Contents/Resources/'%(bldroot,builddir,binary)
commands.getoutput(cmd)
+ cmd = 'mkdir %s/%s.app/Contents/MacOS/.blender/python/'%(builddir,binary)
+ commands.getoutput(cmd)
+ cmd = 'unzip -q %s/release/python.zip -d %s/%s.app/Contents/MacOS/.blender/python/'%(libdir,builddir,binary)
+ commands.getoutput(cmd)
cmd = 'cp -R %s/release/scripts %s/%s.app/Contents/MacOS/.blender/'%(bldroot,builddir,binary)
commands.getoutput(cmd)
cmd = 'cp -R %s/release/ui %s/%s.app/Contents/MacOS/.blender/'%(bldroot,builddir,binary)