~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to documentation/management/commands/create_docs.py

  • Committer: franku
  • Date: 2018-05-09 16:31:18 UTC
  • mto: This revision was merged to the branch mainline in revision 496.
  • Revision ID: somal@arcor.de-20180509163118-ueu15c4oih2eoa7a
clean own conf.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
103
103
        if os.path.exists(os.path.join(self.sphinx_dir, 'build')):
104
104
            # Clean the autogen* files created by extract_rst.py
105
105
            # This has to be done because sometimes such a file remains after
106
 
            # removing it from extract_rst. sphinx-build throughs an error
107
 
            # then.
 
106
            # removing it from extract_rst.
108
107
            try:
109
108
                for f in glob.glob(os.path.join(self.sphinx_dir, 'source/autogen*')):
110
109
                    os.remove(f)