Changeset 995 for specdomain/trunk/src/specdomain/doc/starter.py
- Timestamp:
- Jul 6, 2012 4:11:36 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
specdomain/trunk/src/specdomain/doc/starter.py
r938 r995 12 12 import sys 13 13 14 import os 15 import sphinx 16 import sys 17 14 18 15 19 def force_rebuild_all(parent = '_build'): 16 20 ''' 17 Delete the *doctrees* subdirectory.21 Delete the pickle file. 18 22 19 23 :param str parent: path to *build* subdirectory (either ``build`` or ``_build``) 20 24 ''' 21 if os.path.exists(parent+'/doctrees'): 22 garbage_list = [ 23 parent+'/doctrees/environment.pickle', 24 #parent+'/doctrees/index.doctree', 25 #parent+'/doctrees/test_doc.doctree', 26 ] 27 for item in garbage_list: 28 if os.path.exists(item): 29 os.remove(item) 30 #os.rmdir(parent+'/doctrees') 25 pickle_file = parent+'/doctrees/environment.pickle' 26 if os.path.exists(pickle_file): 27 os.remove(pickle_file) 31 28 32 29
Note: See TracChangeset
for help on using the changeset viewer.