parent
c32d3f8673
commit
23681b8059
|
@ -258,7 +258,8 @@ class LSession(AbstractSession):
|
||||||
capture = py.io.OutErrCapture()
|
capture = py.io.OutErrCapture()
|
||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
apigen.build(self.config.topdir,
|
pkgdir = self.getpkgdir(self.config.args[0])
|
||||||
|
apigen.build(pkgdir,
|
||||||
DocStorageAccessor(self.docstorage))
|
DocStorageAccessor(self.docstorage))
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
import traceback
|
import traceback
|
||||||
|
@ -277,8 +278,9 @@ class LSession(AbstractSession):
|
||||||
from py.__.apigen.tracer.tracer import Tracer, DocStorage
|
from py.__.apigen.tracer.tracer import Tracer, DocStorage
|
||||||
module = py
|
module = py
|
||||||
try:
|
try:
|
||||||
|
pkgdir = self.getpkgdir(self.config.args[0])
|
||||||
apigen = py.path.local(self.config.option.apigen).pyimport()
|
apigen = py.path.local(self.config.option.apigen).pyimport()
|
||||||
items = apigen.get_documentable_items(self.config.topdir)
|
items = apigen.get_documentable_items(pkgdir)
|
||||||
if isinstance(items, dict):
|
if isinstance(items, dict):
|
||||||
self.docstorage = DocStorage().from_dict(items)
|
self.docstorage = DocStorage().from_dict(items)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue