[Distutils] Copying entire directory

Friedrich Romstedt friedrichromstedt at gmail.com
Wed Oct 6 18:54:16 CEST 2010


2010/10/5 Roberto Riggio <roberto.riggio at create-net.org>:
> data_files = [('etc/foo/www/', [ 'dashboard/*' ])]

You can also use the `glob` module.  And as a side remark: It's in my
opinion always a good idea to try to avoid hard-coding directory
separators (/), and to use os.path.join() instead.

Friedrich


More information about the Distutils-SIG mailing list