-if [[ ${MODE} = 'Standalone' ]]; then
- source ${TOOLS_DIR}/env_standalone.sh
-else
- source ${TOOLS_DIR}/env_salome.sh
+## Preserve PTHONPATH in order to avoid problems with Sphinx on Fedora26 because of Pigments in ParaView
+export PYTHONPATH_OLD=$PYTHONPATH
+source env.sh
+
+if [[ ${OS_NAME} = Fedora26-64 ]]
+then
+ export PYTHONPATH=$PYTHONPATH_OLD