From 4373ad1f21b6a48a55b5ae3b7e48fdde0a521356 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 31 Mar 2016 17:54:25 +0300 Subject: [PATCH] Change PYTHONPATH handling --- Makefile | 4 ++-- doc-ru/conf.py | 1 + doc/conf.py | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) 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]) -- 2.39.2