Fix plugins source install for real.
authorMartin Poirier <theeth@yahoo.com>
Mon, 14 Dec 2009 18:13:18 +0000 (18:13 +0000)
committerMartin Poirier <theeth@yahoo.com>
Mon, 14 Dec 2009 18:13:18 +0000 (18:13 +0000)
Previous fix created a double /plugins/plugins tree.

This should work on all platform (no longer using split when it shouldn't, not creating lists for nothing, ...).

SConstruct

index a5ae5f47c6d005e3897bdce59ac6fdba91c4f84d..8a026a0c0837a494fd92778f0c88b799b1f1da7e 100644 (file)
@@ -533,9 +533,10 @@ plugtargetlist = []
 for tp, tn, tf in os.walk('release/plugins'):
        if '.svn' in tn:
                tn.remove('.svn')
+       df = tp[8:] # remove 'release/'
        for f in tf:
                pluglist.append(os.path.join(tp, f))
-               plugtargetlist.append( os.path.join(*([BLENDERPATH, 'plugins'] + tp.split(os.sep)[1:] + [f])) )
+               plugtargetlist.append( os.path.join(BLENDERPATH, df, f) )
 
 
 # header files for plugins