We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7aca48e commit 32e4933Copy full SHA for 32e4933
readthedocs/builds/models.py
@@ -184,10 +184,12 @@ def get_downloads(self, pretty=False):
184
return data
185
186
def get_conf_py_path(self):
187
- conf_py_path = self.project.conf_file(self.slug)
188
- conf_py_path = conf_py_path.replace(
189
- self.project.checkout_path(self.slug), '')
190
- return conf_py_path.replace('conf.py', '')
+ conf_py_path = self.project.conf_dir(self.slug)
+ if not conf_py_path.endswith('/'):
+ conf_py_path += '/'
+ checkout_prefix = self.project.checkout_path(self.slug)
191
+ conf_py_path = conf_py_path[len(checkout_prefix):]
192
+ return conf_py_path
193
194
def get_build_path(self):
195
'''Return version build path if path exists, otherwise `None`'''
0 commit comments