Thanks for extending Cadabra to allow imports from .cdb files. I've done a bit of fiddling and I have a query.
I can see that when foo.cdb is imported Cadabra caches a compiled version of foo in cadabra_pacakges. The problem is that a single cache can't store compiled versions for two or more different files all named foo.cdb. That wouldn't be a problem if all copies of foo.cdb were identical but that is not always the case. Python deals with this problem by localising the cache (--pycache--) to the directory in which the imported file lives. Could a similar idea be used here? Maybe --cdbcahce--?
Hi Kasper,
Thanks for extending Cadabra to allow imports from .cdb files. I've done a bit of fiddling and I have a query.
I can see that when foo.cdb is imported Cadabra caches a compiled version of foo in cadabra_pacakges. The problem is that a single cache can't store compiled versions for two or more different files all named foo.cdb. That wouldn't be a problem if all copies of foo.cdb were identical but that is not always the case. Python deals with this problem by localising the cache (--pycache--) to the directory in which the imported file lives. Could a similar idea be used here? Maybe --cdbcahce--?
Cheers, Leo