dataiku-api-client-python icon indicating copy to clipboard operation
dataiku-api-client-python copied to clipboard

Limitations of relative imports

Open duckie opened this issue 5 years ago • 0 comments

Relative imports can have various impacts when the package is used from an external script, since said script may execute in the right virtual env but maybe not the right python context module wise.

There is two solutions to this:

  • Expose symbols between modules in the main init file
  • Use fully qualified imports

Unfortunately, the fully qualified break the possibility to "relocate" the module, ie, making it a submodule of another, which is required here for it to be usable as Ansible module utils.

No action is specifically required, this issue is merely a reminder of previous work in case the question arise later on.

duckie avatar May 20 '20 15:05 duckie