Commit de5e5177 authored by Georgios D. Tsoukalas's avatar Georgios D. Tsoukalas
Browse files

robust version importing in docs build config

After changing sys.path, synnefo and synnefo.versions must be reloaded
because if they have been cached, the updated sys.path will not be
consulted because importing synnefo and synnefo.versions will stop at
the cache in sys.modules
parent c7124929
import sys, os
sys.path.insert(0, os.path.abspath('../snf-cyclades-app'))
import synnefo
reload(synnefo)
import synnefo.versions
reload(synnefo.versions)
from synnefo.versions.app import __version__
project = u'synnefo'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment