Access dependencies file in python #27
-
Is it possible to access a file specified with the dependencies option inside a CacheMeCode environment? This way the filename would only have to be specified once. Furthermore does python require one to explicit look in the parent dircectory if the imported file is not in the robustExternalize folder. And that is not adviced, see here #10. Now one has to do this:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 11 replies
-
One thing you can do is to use a placeholder + create a style like:
This way the In general, I don't know a generic equivalent of the loadpath for python, but I guess the above code should make the |
Beta Was this translation helpful? Give feedback.
One thing you can do is to use a placeholder + create a style like:
This way the
../
is automatically added. If you find is useful, I can consider to add a similar functionality.In general, I don't know a generic equivalent of the loadpath for python, but I guess the above code should make the
../
invisible enough not to be a problem, right? You can also usecopy file to cache
, but it is less elegant as it will copy the file to the cache which might be an issue if th…