annotate nt/installer/Wise/filelist.py @ 919:111c4f2ed9c9

[xemacs-hg @ 2002-07-14 09:43:52 by adrian] [S] [PATCH] xemacs-21.5: Hrvoje's `functionp' fix -------------------- ChangeLog entries follow: -------------------- src/ChangeLog addition: 2002-07-08 Stephen J. Turnbull <stephen@xemacs.org> * lisp.h: Declare Fcdr_safe to be callable from C. 2002-07-08 Hrvoje Niksic <hniksic@xemacs.org> * eval.c (Ffunctionp): Return nil for autoloaded macros and keymaps.
author adrian
date Sun, 14 Jul 2002 09:43:54 +0000
parents 74fd4e045ea6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
1 import os
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
2 import dirs
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
3 import string
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
4
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
5 def listdir_recursive(basedir):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
6 ret = []
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
7 for f in os.listdir(basedir):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
8 if os.path.isfile(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
9 ret.append(f)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
10 elif os.path.isdir(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
11 for f1 in listdir_recursive(basedir+"\\"+f):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
12 ret.append(f+"\\"+f1)
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
13 return ret
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
14
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
15 all = []
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
16
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
17
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
18
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
19 for f in listdir_recursive(dirs.installed):
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
20 if string.find(f,'CVS')>=0:
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
21 continue
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
22 all.append((f, dirs.installed, dirs.dst))
74fd4e045ea6 Import from CVS: tag r21-2-29
cvs
parents:
diff changeset
23