From: Oleg Broytman Date: Thu, 31 Mar 2016 14:54:25 +0000 (+0300) Subject: Change PYTHONPATH handling X-Git-Tag: 0.0.4~36 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=4373ad1f21b6a48a55b5ae3b7e48fdde0a521356 Change PYTHONPATH handling --- diff --git a/Makefile b/Makefile index 9bf3b27..5ef35dc 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,8 @@ all: .PHONY: htmldoc htmldoc: - PYTHONPATH="`pwd`" $(MAKE) -C doc html - PYTHONPATH="`pwd`" $(MAKE) -C doc-ru html + $(MAKE) -C doc html + $(MAKE) -C doc-ru html .PHONY: test test: diff --git a/doc-ru/conf.py b/doc-ru/conf.py index 7be00e8..0aab948 100644 --- a/doc-ru/conf.py +++ b/doc-ru/conf.py @@ -50,6 +50,7 @@ copyright = u'2016, Oleg Broytman' # |version| and |release|, also used in various other places throughout the # built documents. # +sys.path.insert(0, os.path.abspath('..')) from m_librarian.__version__ import __version__ # The short X.Y version. version = '.'.join(__version__.split('.')[:2]) diff --git a/doc/conf.py b/doc/conf.py index 7c16bc6..b6b2ff3 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -50,6 +50,7 @@ copyright = u'2016, Oleg Broytman' # |version| and |release|, also used in various other places throughout the # built documents. # +sys.path.insert(0, os.path.abspath('..')) from m_librarian.__version__ import __version__ # The short X.Y version. version = '.'.join(__version__.split('.')[:2])