Make sure correct python31 zip is unpacked when BF_DEBUG=True
authorNathan Letwory <nathan@letworyinteractive.com>
Fri, 27 Aug 2010 21:42:33 +0000 (21:42 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Fri, 27 Aug 2010 21:42:33 +0000 (21:42 +0000)
build_files/scons/tools/Blender.py

index c2ccfcc8689626e6cafb76c47561173c41696e14..acee9522003c303078636694a492b5d17d68e005 100644 (file)
@@ -470,7 +470,10 @@ def WinPyBundle(target=None, source=None, env=None):
        py_zip= env.subst( env['LCGDIR'] )
        if py_zip[0]=='#':
                py_zip= py_zip[1:]
-       py_zip+= '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '.zip'
+       if env['BF_DEBUG']:
+               py_zip+= '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '_d.zip'
+       else:
+               py_zip+= '/release/python' + env['BF_PYTHON_VERSION'].replace('.','') + '.zip'
 
        py_target = env.subst( env['BF_INSTALLDIR'] )
        if py_target[0]=='#':