Skip to content

Non-Static Imports? #855

Answered by HT154
rohan-datar asked this question in Q&A
Dec 18, 2024 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

The globbed imports are interesting, but that still means that the data module files have to live at a fixed path relative to the renderer? I was hoping to keep them separately since the data is likely to be changed fairly often, and I would like to keep those files in a separate git repo. It's workable, but frustrating nonetheless.

I've run into this before as well. You have some "aggregation" logic in a module that you want to ship as part of your package, but you don't want to copy it around into each repo that needs it. Here's how I've addressed that:

aggregate.pkl (in package)

include: Mapping<String, Any>

// do stuff with `include`, eg. rendering logic

aggregate.pkl (usage site)

a…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@bioball
Comment options

@rohan-datar
Comment options

@HT154
Comment options

@HT154
Comment options

Answer selected by rohan-datar
@rohan-datar
Comment options

@rohan-datar
Comment options

Comment options

You must be logged in to vote
4 replies
@HT154
Comment options

@rohan-datar
Comment options

@HT154
Comment options

@rohan-datar
Comment options

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