too much indentation!
[blender.git] / tools / scons / bs / bs_nsis.py
index cdac85560eb589026888869a747222fb23737724..2c9c9ce6ca767100d2fa08bed917b3d331713a76 100644 (file)
@@ -95,6 +95,18 @@ def donsis(env, target, source):
        cfgstring = string.join(cfglist, "\n  ")
        cfgstring += "\n\n"
        nsis_cnt = string.replace(nsis_cnt, "[SCRIPTDATACFGCONTS]", cfgstring)
+       
+       # do plugins\include
+       plugincludelist = []
+       plugincludepath = "%s%s" % (startdir, "\\dist\\plugins\\include")
+       plugincludedir = os.listdir(plugincludepath)
+       for plugincludeitem in plugincludedir:
+               plugincludefile = "%s\\%s" % (plugincludepath, plugincludeitem)
+               if os.path.isdir(plugincludefile) == 0:
+                       plugincludelist.append("File %s" % plugincludefile)
+       plugincludestring = string.join(plugincludelist, "\n  ")
+       plugincludestring += "\n\n"
+       nsis_cnt = string.replace(nsis_cnt, "[PLUGINCONTS]", plugincludestring)
 
        # do dotblender
        dotblendlist = []