Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
Merge pull request #427 from mhvk/patch-1
Browse files Browse the repository at this point in the history
Fix edit-on-github
  • Loading branch information
pllim authored Sep 19, 2019
2 parents b06e06f + 39f8527 commit 34c5256
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions {{ cookiecutter.package_name }}/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@
if eval(setup_cfg.get('edit_on_github')):
extensions += ['sphinx_astropy.ext.edit_on_github']

versionmod = __import__(setup_cfg['package_name'] + '.version')
versionmod = import_module(setup_cfg['name'] + '.version')
edit_on_github_project = setup_cfg['github_project']
if versionmod.version.release:
edit_on_github_branch = "v" + versionmod.version.version
if versionmod.release:
edit_on_github_branch = "v" + versionmod.version
else:
edit_on_github_branch = "master"

Expand Down

0 comments on commit 34c5256

Please sign in to comment.