Skip to content

[connectors-sdk] BaseConnectorSettings does not work with connector as module #5295

@Powlinett

Description

@Powlinett

Description

Currently, BaseConnectorSettings relies on __main__ path to find config.yml and/or .env but __main__ is not defined when the connector is a python module (when src/__main__.py exists).

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. Implement BaseConnectorSettings in a connector developed as a python module
  2. Launch the connector

Expected Output

BaseConnectorSettings should find config.yml and/or .env from the entrypoint of a connector.

Actual Output

An error is raised.

Additional information

This fix is required for the migration of the connectors to their "manager supported" version.

Metadata

Metadata

Assignees

Labels

buguse for describing something not working as expectedconnectors-sdktinyuse to identify tiny feature to develop or bug to fix (< a week to solve)

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions