mirror of
https://github.com/readthedocs/sphinx-autoapi
synced 2024-11-19 15:25:31 +00:00
Fix double autoapi_dir prepended to find_files
This commit is contained in:
parent
817b184619
commit
0ccde8454a
@ -70,7 +70,7 @@ class PythonDomain(AutoAPIDomain):
|
||||
def get_objects(self, pattern):
|
||||
'''Trigger find of serialized sources and build objects'''
|
||||
for path in self.find_files(pattern):
|
||||
data = self.read_file(os.path.join(self.get_config('autoapi_dir'), path))
|
||||
data = self.read_file(path)
|
||||
if data:
|
||||
obj = self.create_class(data)
|
||||
self.add_object(obj)
|
||||
|
Loading…
Reference in New Issue
Block a user