~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/doc/api/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-01 20:07:49 UTC
  • mfrom: (1711.2.112 jam-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060801200749-e0bd496331bb4d2b
(bialix) Create a nice win32 installer

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import os
29
29
    
30
30
def test_suite():
31
 
    candidates = os.listdir(os.path.dirname(__file__))
 
31
    dir_ = os.path.dirname(__file__)
 
32
    if os.path.isdir(dir_):
 
33
        candidates = os.listdir(dir_)
 
34
    else:
 
35
        candidates = []
32
36
    scripts = [candidate for candidate in candidates
33
37
               if candidate.endswith('.txt')]
34
38
    return doctest.DocFileSuite(*scripts)