It works fine in the REPL, but it :bomb: s out with clojure -A:test as a result, I believe, of AOT compilation issues. I sunk way more time into the testing than I did into the writing. I'm not sure how to AOT dynamic file creation, so I gave up on that approach, but I'm open to suggestions.
Closes:
https://github.com/clj-python/libpython-clj/issues/253
This PR allows for the following sort of exploratory coding style, the PYTHONPATH is managed for the user and reset after execution.
Some alternatives considered:
I attempted, initially, to augment
by adding bindings for Py_SetPath() and Py_GetPath(), but I gave up on that approach. Too many segfaults.
Some difficulties encountered:
I wrote the following testing framework for the new functionality:
It works fine in the REPL, but it :bomb: s out with
clojure -A:test
as a result, I believe, of AOT compilation issues. I sunk way more time into the testing than I did into the writing. I'm not sure how to AOT dynamic file creation, so I gave up on that approach, but I'm open to suggestions.