Skip to content

Commit

Permalink
adjusts QrRCImporter to use the original check
Browse files Browse the repository at this point in the history
  • Loading branch information
timegrid committed May 2, 2024
1 parent 47cd4be commit 596655c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/qrc_importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ def get_filename(self, fullname):

class PyOtherSideQtRCImporter(abc.MetaPathFinder):
def find_spec(self, fullname, path, target=None):
fname = get_filename(fullname)
if fname:
return spec_from_loader(fullname, PyOtherSideQtRCLoader(fname))
if path is None or all(x.startswith('qrc:') for x in path):
fname = get_filename(fullname)
if fname:
return spec_from_loader(fullname, PyOtherSideQtRCLoader(fname))
return None


Expand Down

0 comments on commit 596655c

Please sign in to comment.