From 5b93ea84ec372b354d0eac192fe5708cceddcd64 Mon Sep 17 00:00:00 2001 From: Kasper Peeters Date: Sun, 29 Sep 2024 13:52:22 +0100 Subject: [PATCH] Because we determine the python path relative to the cadabra2.so module, we no longer need to special-case AppImages. --- client_server/Server.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/client_server/Server.cc b/client_server/Server.cc index 2f86e52eaa..eabccb5f30 100644 --- a/client_server/Server.cc +++ b/client_server/Server.cc @@ -148,10 +148,7 @@ void Server::init() // Make the C++ CatchOutput class visible on the Python side. auto python_path = cadabra::install_prefix_of_module(); - char *appdir = getenv("APPDIR"); - if(appdir) - python_path = std::string(appdir)+"/"+python_path; - + std::string stdOutErr = "import sys\n" "sys.path.append(r'"+python_path+"')\n"