Fix double autoapi_dir prepended to find_files

This commit is contained in:
Christopher Swenson 2015-05-29 14:33:45 -07:00
parent 817b184619
commit 0ccde8454a

View File

@ -70,7 +70,7 @@ class PythonDomain(AutoAPIDomain):
def get_objects(self, pattern): def get_objects(self, pattern):
'''Trigger find of serialized sources and build objects''' '''Trigger find of serialized sources and build objects'''
for path in self.find_files(pattern): 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: if data:
obj = self.create_class(data) obj = self.create_class(data)
self.add_object(obj) self.add_object(obj)