Context manager that temporarily changes working directory to where WeberPennTree assets are located.
WeberPennTree C++ code uses hardcoded relative paths like "plugins/weberpenntree/xml/WeberPennTreeLibrary.xml" expecting assets relative to working directory. This manager temporarily changes to the build directory where assets are actually located.
- Exceptions
-
RuntimeError | If build directory or WeberPennTree assets are not found, indicating a build system error. |
Definition at line 64 of file WeberPennTree.py.