Skip to content

Commit

Permalink
2017-09-07
Browse files Browse the repository at this point in the history
  • Loading branch information
MacHu-GWU committed Sep 7, 2017
1 parent 2ad2abb commit fe45041
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docfly/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from __future__ import print_function

__version__ = "0.0.11"
__version__ = "0.0.12"
__short_description__ = "A utility tool to help you build better sphinx documents"
__license__ = "MIT"
__author__ = "Sanhe Hu"
Expand Down
5 changes: 3 additions & 2 deletions docfly/pkg/picage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
except: # pragma: no cover
pass

__version__ = "0.0.2"
__version__ = "0.0.3"
__short_description__ = "Object style interface for package/module."
__license__ = "MIT"
__author__ = "Sanhe Hu"
Expand Down Expand Up @@ -94,7 +94,7 @@ def __init__(self, name, path=None, parent=None, is_single_file=None):
root = chain[0]

# test if using .egg-link
p = Path(SP_DIR, root + ".egg-link")
p = Path(SP_DIR, root.replace("_", "-") + ".egg-link")
if p.is_file() and p.exists():
with open(p.abspath, "rb") as f:
sp_dir = f.readline().decode("utf-8").strip()
Expand All @@ -110,6 +110,7 @@ def __init__(self, name, path=None, parent=None, is_single_file=None):

# then has to be a directory having __init__.py file
p = Path(sp_dir, *chain)
print(p)
if p.is_dir() and p.exists() and Path(p, "__init__.py").exists():
self.path = Path(sp_dir, *chain)
self.is_single_file = False
Expand Down

0 comments on commit fe45041

Please sign in to comment.