Skip to content

Commit

Permalink
add path convenience function
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom committed Jul 22, 2019
1 parent 98fcfa5 commit dd715d7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@ installing via `Pip <https://github.com/pypa/pip>`_ or `Pipenv <https://github.c
pipenv install darkseed
then add to your ``pelicanconf.py``:

.. code:: python
import darkseed
THEME = darkseed.get_path()
local development:

.. code:: bash
Expand Down
7 changes: 7 additions & 0 deletions darkseed/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
all of darkseed must be import safe. autodoc runs on all members.
"""

def get_path():
"""get the theme path"""

import os

return os.path.dirname(__file__)

0 comments on commit dd715d7

Please # to comment.