Open pvavra opened 4 years ago
Not sure I'm understanding this correctly and it is a bug, or I misunderstood something.
Kinda both. ;-)
The code doesn't distinguish where the config comes from. A relative path at a user-level config (~/.gitconfig
) should have different reference point than one that is coming from within a dataset (But what would that reference point be?). If treated uniformly (and that's currently the case) only absolute paths work. But you're right. Relative paths should work at least at the dataset level and there it would be consistent to refer to the dataset's root. There's no point in committing absolute paths after all. The way datalad's configs work that will be a bit trickier to address, but you're absolutely right.
ok, I think I'm starting to understand the "inheritance" of configs.
I agree that relative paths should stay relative to the datasets they come from.
Maybe the same mechanics as for run-procedure
could be used? Those are able to handle
different locations/definitions. But haven't looked at that code (yet)..
Not sure I'm understanding this correctly and it is a bug, or I misunderstood something.
I've got the following setup:
where both
bids
andsourcedata
are datalad datasets (in addition to bothhirni_addons
, andhirni-toolbox
).in
sourcedata/.datalad/config
, I've specified to use acustom_rules.py
which is located insourcedata/code/
. Now, given that this definition is inside the dataset sourcedata, the definition is simply:And running, for example,
datalad hirni-dicom2spec -d . [...]
from within thesourcedata
folder works just fine.However, my understanding is that the following should also work, but it doesn't:
That is, I'm explicitly referencing which
dataset
is to be used and hence the path should work, I think. Maybe around lines 59f it should take into account the path of the dataset?