]> git.phdru.name Git - m_librarian.git/commitdiff
Change PYTHONPATH handling
authorOleg Broytman <phd@phdru.name>
Thu, 31 Mar 2016 14:54:25 +0000 (17:54 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 31 Mar 2016 14:54:25 +0000 (17:54 +0300)
Makefile
doc-ru/conf.py
doc/conf.py

index 9bf3b27f635223d239a7ca0e8d83f040d71f18eb..5ef35dc7a11f404a12e5780fe722cc30745229c4 100644 (file)
--- 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:
index 7be00e850feb87d4312eb4c1edad32fba0f6de20..0aab948d356de3e8dc12762abccb6e005b014af9 100644 (file)
@@ -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])
index 7c16bc614a9a0b43185a47088977d86325634386..b6b2ff3c3049528903ebfd34a755d6556be559e0 100644 (file)
@@ -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])