We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32e4933 commit 7342695Copy full SHA for 7342695
readthedocs/builds/models.py
@@ -185,10 +185,8 @@ def get_downloads(self, pretty=False):
185
186
def get_conf_py_path(self):
187
conf_py_path = self.project.conf_dir(self.slug)
188
- if not conf_py_path.endswith('/'):
189
- conf_py_path += '/'
190
checkout_prefix = self.project.checkout_path(self.slug)
191
- conf_py_path = conf_py_path[len(checkout_prefix):]
+ conf_py_path = os.path.relpath(conf_py_path, checkout_prefix)
192
return conf_py_path
193
194
def get_build_path(self):
0 commit comments