Commit bcad53f6 authored by Yanghan Wang's avatar Yanghan Wang Committed by Facebook GitHub Bot
Browse files

fix d2go.config

Summary:
I think the main issue is that we import `reroute_config_path` from `d2go.config.config` in `__init__.py`, but it's actually in `d2go.config.utils`. After fixing this, the namespace forward also works, see `scripts/wangyanghan/autodeps_testbed/d2go_config/TARGETS`

Update all TARGETS:
```
fbgs -l "d2go/config:" | xargs printf -- '/data/sandcastle/boxes/%s\n' | xargs arc lint -a
```

For reviewers, only `.autodeps.toml` and files in `d2go/d2go/config/` and `scripts/wangyanghan/autodeps_testbed/d2go_config/` are manually changed, other files are auto modified.

Reviewed By: ajinkya-deogade

Differential Revision: D46582416

fbshipit-source-id: 0be0bebedd1aad5b67a746c75db3c6b81bcfecee
parent 61f72a8c
...@@ -9,10 +9,10 @@ from d2go.config.config import ( ...@@ -9,10 +9,10 @@ from d2go.config.config import (
CONFIG_CUSTOM_PARSE_REGISTRY, CONFIG_CUSTOM_PARSE_REGISTRY,
CONFIG_SCALING_METHOD_REGISTRY, CONFIG_SCALING_METHOD_REGISTRY,
load_full_config_from_file, load_full_config_from_file,
reroute_config_path,
temp_defrost, temp_defrost,
temp_new_allowed, temp_new_allowed,
) )
from d2go.config.utils import reroute_config_path
__all__ = [ __all__ = [
......
...@@ -5,8 +5,8 @@ import contextlib ...@@ -5,8 +5,8 @@ import contextlib
import copy import copy
import logging import logging
from typing import List from typing import List
from unittest import mock
import mock
import yaml import yaml
from d2go.config.utils import reroute_config_path, resolve_default_config from d2go.config.utils import reroute_config_path, resolve_default_config
from detectron2.config import CfgNode as _CfgNode from detectron2.config import CfgNode as _CfgNode
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment