import paver.doctools
import paver.setuputils

from schevo.release import setup_meta


options(
    setup=setup_meta,
    sphinx=Bunch(
        docroot='doc',
        builddir='build',
        sourcedir='source',
    ),
)


@task
@needs('paver.doctools.html')
def openhtml():
    index_file = path('doc/build/html/index.html')
    sh('open ' + index_file)

from schevo.release import setup_meta


options(
    setup=setup_meta,
    sphinx=Bunch(
        docroot='doc',
        builddir='build',
        sourcedir='source',
    ),
)


try:
    import paver.doctools
except ImportError:
    pass
else:
    @task
    @needs('paver.doctools.html')
    def openhtml():
        index_file = path('doc/build/html/index.html')
        sh('open ' + index_file)

Make paver.doctools optional, to allow for downloading of ==dev eggs
Make paver.doctools optional, to allow for downloading of ==dev eggs

Signed-off-by: Matthew R. Scott <878b2bb7d7b44067d87275810e479f4abd7737ae@gmail.com>
