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

[Py3] Support relative and package imports #45

Closed
wants to merge 3 commits into from
Closed

[Py3] Support relative and package imports #45

wants to merge 3 commits into from

Conversation

MattHardcastle
Copy link

The update called in the context of the plugin and its own shell. These context have different package paths. The plugin must import through relative paths, while the shell must import through package paths. This change ensures both context work.

There's probably a more elegant way of resolving this issue. ;)

The change also reverse the circular import fix to make resolving the relative import in Py3 easier since the fix can exist in oneplace rather than multiple imports statements.

re: #33

This PR is dependent on #36 and thus based off its branch. It'll be easier to review this after the dependent PR is merged.

This PR is part of a collection of changes to support Python3. The collection is broken into multiple stages. This change is part of stage 2 and should be safe to merge after all the changes from stage 2 are merged.

Py3 drops the cPickle library. This ensure's it's not used if it doesn't
exist.

re: #33
The update called in the context of the plugin and its own shell. These
context have different package paths. The plugin must import through
relative paths, while the shell must import through package paths. This
change ensures both context work.

There's probably a more elegant way of resolving this issue. ;)

The change also reverse the circular import fix to make resolving the
relative import in Py3 easier since the fix can exist in oneplace rather
than multiple imports statements.

re: #33
@MattHardcastle MattHardcastle closed this by deleting the head repository Jul 7, 2024
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.

1 participant