Python distutils - copy_tree with filter
-
19-09-2019 - |
Question
I want to copy a data directory into my distribution dir. copy_tree
does this just fine. However, the project is also an svn repository, and I don't want the distribution to have all the .svn files that the data dir has. Is there any easy way to do a copy_tree
excluding the .svn
files, or should I just write my own recursive dir copy? I feel someone must have had this issue before.
Solution
I just used shutil.copytree
, which takes an ignore
kwd arg.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow