Skip to content

Commit

Permalink
Merge pull request #177 from growly/main
Browse files Browse the repository at this point in the history
Fix qualpath for imported modules
  • Loading branch information
dan-fritchman authored Sep 5, 2023
2 parents cf31f94 + c69ae53 commit 06a1d40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdl21/qualname.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def qualpath(mod: HasQualPath) -> Optional[List[str]]:

if getattr(mod, "_importpath", None) is not None:
# Imported. Return the period-separated import path.
return mod._importpath
return mod._importpath + [mod.name]

if mod.name is None:
# Unnamed. Return None.
Expand Down

0 comments on commit 06a1d40

Please sign in to comment.