Skip to content

Access dependencies file in python #27

Answered by tobiasBora
dflvunoooooo asked this question in Q&A
Discussion options

You must be logged in to vote

One thing you can do is to use a placeholder + create a style like:

\robExtConfigure{
  add deps placeholder/.style={
    dependencies = {#1},
    set placeholder={__MY_DEPS__}{__ROBEXT_WAY_BACK__#1},
  },
}
\begin{CacheMeCode}{python, add deps placeholder={name.dat}}
…
file = '__MY_DEPS__'

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 use copy file to cache, but it is less elegant as it will copy the file to the cache which might be an issue if th…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@dflvunoooooo
Comment options

@tobiasBora
Comment options

@tobiasBora
Comment options

@dflvunoooooo
Comment options

@dflvunoooooo
Comment options

Answer selected by tobiasBora
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants