Python distutils - copy_tree with filter

I want to copy the data directory to the distribution. copy_tree

It's just great. However, the project is also an svn repository, and I don't want the distribution to have all the .svn files that are in the data directory. Is there an easy way to do it copy_tree

, excluding files .svn

, or just write my own recursive copy? I feel like someone has had this question before.

+2


source to share


1 answer


I have used shutil.copytree

which takes a ignore

kwd argument .



+2


source







All Articles