Try it again

This commit is contained in:
Anthony Johnson 2015-10-27 01:45:54 -07:00
parent 5fa272ca4b
commit 3fd930f4fb
2 changed files with 5 additions and 4 deletions

View File

@ -356,8 +356,9 @@ class DotNetPythonMapper(PythonMapperBase):
return self.ref_name.split('.')[-1]
@property
def abs_path(self):
return os.path.join(os.path.sep, 'autoapi', self.pathname, 'index')
def include_path(self):
"""Return 'absolute' path without regarding OS path separator"""
return '/'.join(['/autoapi', self.pathname, 'index'])
@staticmethod
def transform_doc_comments(text):

View File

@ -15,7 +15,7 @@
{% for item in obj.children|sort %}
{% if item.type != 'namespace' %}
{{ item.abs_path }}
{{ item.include_path }}
{% endif %}
{% endfor %}
@ -30,7 +30,7 @@
{% for item in obj.references|sort %}
{% if item.type != 'namespace' %}
{{ item.abs_path }}
{{ item.include_path }}
{% endif %}
{% endfor %}