From fc180f61b9ad4bba1a7296d26604d8d2a38dce43 Mon Sep 17 00:00:00 2001 From: Lisa Julia Nebel <lisa_julia.nebel@tu-dresden.de> Date: Fri, 17 May 2019 14:25:08 +0200 Subject: [PATCH] Remove hard coded path from Python commands --- src/cosserat-continuum.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cosserat-continuum.cc b/src/cosserat-continuum.cc index 9029c252..32f7d64b 100644 --- a/src/cosserat-continuum.cc +++ b/src/cosserat-continuum.cc @@ -130,7 +130,8 @@ int main (int argc, char *argv[]) try //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; using namespace TypeTree::Indices; -- GitLab