Skip to content

Commit

Permalink
lib.registry default import path
Browse files Browse the repository at this point in the history
  • Loading branch information
antonymayi committed Oct 13, 2021
1 parent b1b6364 commit fd070da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 3 additions & 2 deletions forml/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
import toml

import forml
from forml.lib import registry, runner, sink
from forml.lib import runner, sink
from forml.lib.registry import filesystem


class Parser(dict):
Expand Down Expand Up @@ -149,7 +150,7 @@ def read(self, path: pathlib.Path) -> None:
DEFAULTS = {
# all static defaults should go rather to the ./config.toml (in this package)
OPT_TMPDIR: tempfile.gettempdir(),
SECTION_REGISTRY: {OPT_PATH: [registry.__name__]},
SECTION_REGISTRY: {OPT_PATH: [filesystem.__name__]},
SECTION_RUNNER: {OPT_PATH: [runner.__name__]},
SECTION_FEED: {OPT_PATH: []},
SECTION_SINK: {OPT_PATH: [sink.__name__]},
Expand Down
6 changes: 0 additions & 6 deletions forml/lib/registry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,3 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

"""
Registry implementations.
"""

__all__ = ['filesystem']

0 comments on commit fd070da

Please sign in to comment.