diff --git a/src/harmonicmaps.cc b/src/harmonicmaps.cc
index 3cbab5cdb6e681b5c45595b7bb86987d9f17fb5c..0700d120b9630af7629c905425094923d5ce34ed 100644
--- a/src/harmonicmaps.cc
+++ b/src/harmonicmaps.cc
@@ -130,7 +130,8 @@ int main (int argc, char *argv[])
     //feenableexcept(FE_INVALID);
     Python::runStream()
         << std::endl << "import sys"
-        << std::endl << "sys.path.append('/home/sander/dune/dune-gfe/problems')"
+        << std::endl << "import os"
+        << std::endl << "sys.path.append(os.getcwd() + '/../../problems/')"
         << std::endl;