Skip to content

Commit 74c2168

Browse files
author
Dominic Price
committed
Use install_prefix instead of PYTHON_SITE_PATH to initialize server
1 parent e7f3786 commit 74c2168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client_server/Server.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void Server::init()
145145

146146
// Make the C++ CatchOutput class visible on the Python side.
147147

148-
auto python_path = std::string(PYTHON_SITE_PATH);
148+
auto python_path = std::string(cadabra::install_prefix() + "/lib/python" + std::to_string(PY_MAJOR_VERSION) + "." + std::to_string(PY_MINOR_VERSION) + "/" + std::string(PYTHON_SITE_DIST));
149149

150150
std::string stdOutErr =
151151
"import sys\n"

0 commit comments

Comments
 (0)