Skip to content

Instantly share code, notes, and snippets.

@abelardojarab
Last active November 14, 2017 00:33
Show Gist options
  • Select an option

  • Save abelardojarab/496dddfae3a595235e8289504d7a2a67 to your computer and use it in GitHub Desktop.

Select an option

Save abelardojarab/496dddfae3a595235e8289504d7a2a67 to your computer and use it in GitHub Desktop.
Fix sphinx environment.py; needed when sphinx complains about number of arguments to find_files

Locate find_files line and modify it to match:

        def find_files(self, config, builder=None)

Also search for the lines where find_files is invoked; and assure we have a second argument (None)

        # the source and doctree directories may have been relocated
        self.srcdir = srcdir
        self.doctreedir = doctreedir
        self.find_files(config, None)
        self.config = config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment