Anyone knows how to use relative import with `tap-...
# getting-started
r
Anyone knows how to use relative import with
tap-spreadsheets-anywhere
? I need to fetch a file one folder out of the meltano project file. https://hub.meltano.com/extractors/tap-spreadsheets-anywhere/ This is the syntax for getting a file via absolute path:
I've tried:
path: file://${MELTANO_PROJECT_ROOT}/../file.csv
j
Which variant is it, @rene_czepluch?
r
It's the variant: ets. I didn't notice there was different variants.
j
I'm not sure you can inject env var like that in the
path
key. I believe it will treat it as a literal. As to the relative parent dir paths, you can use
search_prefix
with value
../data
Which should consider following path
Copy code
<path>../data
to recursively search for files in 🤷 I'm basing this by looking at the tap's code, specifically https://github.com/ets/tap-spreadsheets-anywhere/blob/646c0698b6288b277426a1dd8a587e3a504a8797/tap_spreadsheets_anywhere/file_utils.py#L251C[…]51C10 Hopefully someone who has used this tap can provide a better answer 😕
r
thanks that is a great suggestion I'll try it