Skip to content

Commit

Permalink
Fix Python docgen
Browse files Browse the repository at this point in the history
The old package directory handling was stale in grpcio's setup.py
command support module and docgen had a typo.
  • Loading branch information
soltanmm committed Sep 10, 2015
1 parent 6c99ad0 commit 38fc0bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/python/grpcio/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def run(self):
import sphinx.apidoc
metadata = self.distribution.metadata
src_dir = os.path.join(
os.getcwd(), self.distribution.package_dir['grpc'])
os.getcwd(), self.distribution.package_dir[''], 'grpc')
sys.path.append(src_dir)
sphinx.apidoc.main([
'', '--force', '--full', '-H', metadata.name, '-A', metadata.author,
Expand Down
2 changes: 1 addition & 1 deletion tools/distrib/python/docgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
assert args.doc_branch
github_user = args.gh_user
github_repository_owner = (
args.gh_repo_owner if args.gh_repo_owner else gh_user)
args.gh_repo_owner if args.gh_repo_owner else args.gh_user)
# Create a temporary directory out of tree, checkout gh-pages from the
# specified repository, edit it, and push it. It's up to the user to then go
# onto GitHub and make a PR against grpc/grpc:gh-pages.
Expand Down

0 comments on commit 38fc0bb

Please sign in to comment.