~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to setup.py

  • Committer: Alexander Belchenko
  • Date: 2007-08-15 12:42:14 UTC
  • mto: (2733.1.1 ianc-integration)
  • mto: This revision was merged to the branch mainline in revision 2734.
  • Revision ID: bialix@ukr.net-20070815124214-eumb457tdha2yrft
setup.py find_docs() without fnmatch

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
 
209
209
if 'bdist_wininst' in sys.argv:
210
210
    def find_docs():
211
 
        import fnmatch
212
211
        docs = []
213
212
        for root, dirs, files in os.walk('doc'):
214
213
            r = []
215
214
            for f in files:
216
 
                if (fnmatch.fnmatch(f, '*.html') or
217
 
                    fnmatch.fnmatch(f, '*.css')):
 
215
                if os.path.splitext(f)[1] in ('.html', '.css'):
218
216
                    r.append(os.path.join(root, f))
219
217
            if r:
220
218
                relative = root[4:]