Skip to content

Set project-wide defaults for savename #314

@goerz

Description

@goerz

Is there a way to set project-wide defaults for savename, e.g. for connector and equals?

I'm trying to get rid of equal signs in the output filenames because it trips up Makefiles.

However, doing something like

@produce_or_load(datadir("oct"), args, prefix=prefix, connector="__", equals="_") do args
   # ...
end

in every script gets cumbersome (and error-prone). The @produce_or_load macro doesn't allow me to pass in a dict of keyword args like settings... I think this is a fundamental restriction of having a macro there, but maybe there's a way to get around that?

Is there an easy solution for setting the default connector and equals throughout the entire project, or would it be feasible to add a way to customize these globally?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestsavenameRegarding creating "shorthand" names

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions