Skip to content

Commit

Permalink
merge davidfraser/pyan#2 by GitHub user ch41rmn
Browse files Browse the repository at this point in the history
  • Loading branch information
Technologicat committed Nov 15, 2017
1 parent 808567d commit 5623d1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyan/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ def get_module_name(filename):
if not os.path.exists(init_path):
return mod_name

if not os.path.dirname(filename):
return mod_name

return get_module_name(os.path.dirname(filename)) + '.' + mod_name

def format_alias(x):
Expand Down

0 comments on commit 5623d1d

Please sign in to comment.