Commit 777cc184 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fixed bug related to embedding SourceDescriptor position in docstring

parent b1febf5b
......@@ -39,7 +39,7 @@ def relative_position(pos):
global absolute_path_length
if absolute_path_length==0:
absolute_path_length = len(os.path.abspath(os.getcwd()))
return (pos[0][absolute_path_length+1:], pos[1])
return (pos[0].get_filenametable_entry()[absolute_path_length+1:], pos[1])
def embed_position(pos, docstring):
if not Options.embed_pos_in_docstring:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment