Skip to content

Commit

Permalink
Ugly hack to make sure we find sip on Mavericks
Browse files Browse the repository at this point in the history
refs #7284
  • Loading branch information
stuartcampbell committed Apr 9, 2014
1 parent ae12ec6 commit 2a3248f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Code/Mantid/MantidPlot/src/PythonScripting.cpp
Expand Up @@ -80,8 +80,14 @@ PythonScripting::PythonScripting(ApplicationWindow *parent)
// Only doing this for Darwin and Linux so separator is always ":"
value = std::string(pythonpath);
}
value = sipLocation + ":" + value;
setenv(envname, value.c_str(), 1);
#if defined(Q_OS_DARWIN)
// For OS X add the homebrew python path onto the PYTHONPATH
// There must be a better way to do this dynamically.
value = sipLocation + ":" + value + "/usr/local/lib/python2.7/site-packages/";
#else
value = sipLocation + ":" + value;
#endif
setenv(envname, value.c_str(), 1);
#endif

}
Expand Down

0 comments on commit 2a3248f

Please sign in to comment.