diff options
author | Chris Ball <cjb@laptop.org> | 2010-06-22 15:57:58 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2010-06-22 15:57:58 -0400 |
commit | 9763adba687a0e8921187702dd55e9a7083c9db4 (patch) | |
tree | 5f2bc55869722d7518b0e61e39b6deebe9dec0f4 /doc/generate-libbe-txt.py | |
parent | 6edc7b6e25b4b59b45e157d9d55816fa9dcfe494 (diff) | |
parent | 7755c210fd7003479f60d5699e6f638bcd370fe6 (diff) | |
download | bugseverywhere-9763adba687a0e8921187702dd55e9a7083c9db4.tar.gz |
Merge from Trevor.
Diffstat (limited to 'doc/generate-libbe-txt.py')
-rw-r--r-- | doc/generate-libbe-txt.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/generate-libbe-txt.py b/doc/generate-libbe-txt.py index 35eb5c4..77f775a 100644 --- a/doc/generate-libbe-txt.py +++ b/doc/generate-libbe-txt.py @@ -34,10 +34,10 @@ def toctree(children): ' %s.txt' % c for c in sorted(children) ] + ['', '']) -def make_module_txt(modname, children): - filename = os.path.join('libbe', '%s.txt' % modname) - if not os.path.exists('libbe'): - os.mkdir('libbe') +def make_module_txt(modname, children, subdir='libbe'): + filename = os.path.join(subdir, '%s.txt' % modname) + if not os.path.exists(subdir): + os.mkdir(subdir) if os.path.exists(filename): return None # don't overwrite potentially hand-written files. f = file(filename, 'w') |