Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created --autoimport parameter to autoimport indicated dependencies. #389

Merged
merged 1 commit into from
Apr 25, 2020

Conversation

facundobatista
Copy link
Member

@facundobatista facundobatista commented Apr 18, 2020

This is done by passing a temp file that does the importing, then leaving the user in the interactive interpreter.

Changing PYTHONPATH was explored, but it was too difficult because a) needing to support current PYTHONPATH setting, and b) ipython does not respect that envvar.

Of course, there's no collision for -i because the fades is call is without script at all, this is enabled only for the interactive interpreter case.

While doing this, I also improved a little the "package names db" and its usage, as I needed the "reverse case" of it.

Also, changed my mind about doing this by default, as I proved more "hacky" than I expected. It's not important, though, if you want to always have it enabled, you can use --autoimport in your user's config.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.06%) to 81.748% when pulling 2190a83 on autoimport into 57f77b8 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants