python scripts are not found if they are not placed in a .blender folder

inside MacOs folder of bundle.

their previous location (ressource folder) would however be more logical.
This commit is contained in:
Jean-Luc Peurière 2004-07-29 23:21:05 +00:00
parent c726751760
commit 4f278a78d4

@ -1277,10 +1277,12 @@ def appit(target, source, env):
shutil.copy('bin/.blender/.bfont.ttf', cmd)
shutil.copy('bin/.blender/.Blanguages', cmd)
cmd = 'cp -R bin/.blender/locale %s.app/Contents/Resources/'%target
commands.getoutput(cmd)
cmd = 'mkdir %s.app/Contents/MacOS/.blender'%target
commands.getoutput(cmd)
cmd = 'cp -R release/bpydata %s.app/Contents/Resources/'%target
cmd = 'cp -R release/bpydata %s.app/Contents/MacOS/.blender'%target
commands.getoutput(cmd)
cmd = 'cp -R release/scripts %s.app/Contents/Resources/'%target
cmd = 'cp -R release/scripts %s.app/Contents/MacOS/.blender/'%target
commands.getoutput(cmd)
cmd = 'cp -R release/plugins %s.app/Contents/Resources/'%target
commands.getoutput(cmd)
@ -1314,9 +1316,9 @@ def appit(target, source, env):
shutil.copy('bin/.blender/.Blanguages', cmd)
cmd = 'cp -R bin/.blender/locale %s.app/Contents/Resources/'%target
commands.getoutput(cmd)
cmd = 'cp -R release/bpydata %s.app/Contents/Resources/'%target
cmd = 'cp -R release/bpydata %s.app/Contents/MacOS/.blender'%target
commands.getoutput(cmd)
cmd = 'cp -R release/scripts %s.app/Contents/Resources/'%target
cmd = 'cp -R release/scripts %s.app/Contents/MacOS/.blender/'%target
commands.getoutput(cmd)
cmd = 'cp -R release/plugins %s.app/Contents/Resources/'%target
commands.getoutput(cmd)