Skip to content

Commit

Permalink
preparing release v1.1 - fixing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adrn committed Mar 8, 2020
1 parent 2f744dd commit 1633fe0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@
# |version| and |release|, also used in various other places throughout the
# built documents.

import_module(setup_cfg['name'])
package = sys.modules[setup_cfg['name']]
# Note: For gala, the package name is different from the project name!
package_name = 'gala'
import_module(package_name)
package = sys.modules[package_name]

# TODO: Use Gala style when building docs
mpl_style = None
exec('from {0}.mpl_style import mpl_style'.format(setup_cfg['name']))
exec('from {0}.mpl_style import mpl_style'.format(package_name))
if mpl_style is not None:
plot_rcparams = mpl_style
plot_apply_rcparams = True
Expand Down

0 comments on commit 1633fe0

Please sign in to comment.