-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Fixes PyOtherSideQtRCImporter for submodule imports #134
Conversation
Puh will see about testing that, I will try over the weekend. Can you check what path is in your case? Maybe it would be "more" correct to restore the initial check: So essentially: if path is None or all(x.startswith('qrc:') for x in path): |
In our application the path parameters for different cases look like this:
So excluding non |
Yeah, that makes sense! Thank for double checking. |
I didn't get around to test it. But since it restores the original check that I dropped and reallows sub imports it is ready imo
…On Fri, May 31, 2024, at 08:38, Thomas Perl wrote:
@apollo13 <https://github.com/apollo13> @timegrid
<https://github.com/timegrid> Is this ready to go in?
—
Reply to this email directly, view it on GitHub
<#134 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAT5C7H5IV7U6G2GKHSF3LZFALHTAVCNFSM6AAAAABHCXUEBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBRGMZDMNRQGA>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I agree. Additionally some moment users tested a patched version for a while, and everything seems fine with the imports. |
Any chance, this fix could be released? For moment on archlinux we still need to provide an AUR package instead of the extra package. On other distros with python >= 3.12, it probably needs to be compiled manually until then. |
This is now released as 1.6.2 |
It looks like the importer fix for python 3.12 in #131 does not cover imports of submodules. In
moment
we useimportNames()
like this:This stopped working with the upgrade to python 3.12, #131 did not fix it. When used for a submodule, the path variable is set to
the value of __path__ from the parent package
according to the reference. By removing thispath is None
condition, it works again. Not sure though, if this MR will break other usecases though.@apollo13: could you please test this against your setup?