Ignore:
Timestamp:
Jul 6, 2012 4:11:36 PM (10 years ago)
Author:
jemian
Message:

refs #8, bring this up to date

File:
1 edited

Legend:

Unmodified
Added
Removed
  • specdomain/trunk/src/specdomain/doc/starter.py

    r938 r995  
    1212import sys
    1313
     14import os
     15import sphinx
     16import sys
     17
    1418
    1519def force_rebuild_all(parent = '_build'):
    1620    '''
    17     Delete the *doctrees* subdirectory.
     21    Delete the pickle file.
    1822   
    1923    :param str parent: path to *build* subdirectory (either ``build`` or ``_build``)
    2024    '''
    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)
    3128
    3229
Note: See TracChangeset for help on using the changeset viewer.