view nt/installer/Wise/filelist.py @ 857:b5278486690c

[xemacs-hg @ 2002-05-31 07:14:51 by michaels] 2002-05-30 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> * code-process.el (call-process): Ensure that the argument to `symbol-value-in-buffer' is a buffer even if `buffer' is a string.
author michaels
date Fri, 31 May 2002 07:14:52 +0000
parents 74fd4e045ea6
children
line wrap: on
line source

import os
import dirs
import string

def listdir_recursive(basedir):
    ret = []
    for f in os.listdir(basedir):
	if os.path.isfile(basedir+"\\"+f):
	    ret.append(f)
	elif os.path.isdir(basedir+"\\"+f):
	    for f1 in listdir_recursive(basedir+"\\"+f):
		ret.append(f+"\\"+f1)
    return ret

all = []



for f in listdir_recursive(dirs.installed):
    if string.find(f,'CVS')>=0:
        continue
    all.append((f, dirs.installed, dirs.dst))