question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

set config attributes

See original GitHub issue

have any way to set cfg an attribute

my purpose:

@hydra.main(config_path='conf/config.yaml')
def main(cfg):
    cwd = utils.get_original_cwd()
    setattr(cfg,'cwd', cwd)

    preprocess(cfg)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yuwl798180commented, Oct 24, 2019

Thanks so much for your detailed explaining, you’re a great coder.

0reactions
omrycommented, Apr 1, 2020
  1. the chances are 0%. Don’t expect it to ever happen. Why do you even want to put the logger into the config? Loggers are stored in a singleton, you can access your logger from anywhere as long as you know the name.

  2. This is really up to you.

Please stop the discussion here, if you have any further questions join the chat and ask there. Tickets (especially not closed tickets opened by other people) are not the place to get support.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure attribute sets—ArcGIS Pro | Documentation
Configure an attribute set · In ArcGIS Pro, open the map that contains the feature service whose event layers will define an attribute...
Read more >
Configuration Attribute Guidelines - Salesforce Help
Use configuration attributes to set the value of multiple shared product option fields simultaneously.
Read more >
Eden Editor: Configuring Attributes
Each attribute is configured in the global Config.cpp. ... Owner - defines what does the attribute set. Can be an entity, a scenario...
Read more >
ConfigurationPropertyAttribute Class (System.Configuration)
The simplest way to create a custom configuration element is to use the attributed (declarative) model. You declare the custom public properties and...
Read more >
Configuration and Attributes — Manual - NS-3
Default Attribute values set when Attributes are defined in GetTypeId () . Affect all instances of the class. CommandLine Config::SetDefault() ConfigStore ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found