mirror of https://github.com/KLayout/klayout.git
Fixed #525 - report true source line in DRC and LVS verbose mode
This commit is contained in:
parent
8afd907abb
commit
04aa005247
|
|
@ -1334,7 +1334,7 @@ CODE
|
||||||
|
|
||||||
def src_line
|
def src_line
|
||||||
cc = caller.find do |c|
|
cc = caller.find do |c|
|
||||||
c !~ /drc.lym:/ && c !~ /\(eval\)/
|
c !~ /drc.lym:/ && c !~ /_drc_\w+\.rb:/ && c !~ /\(eval\)/
|
||||||
end
|
end
|
||||||
if cc =~ /(.*)\s*:\s*(\d+)\s*:\s*in.*$/
|
if cc =~ /(.*)\s*:\s*(\d+)\s*:\s*in.*$/
|
||||||
return File::basename($1) + ":" + $2
|
return File::basename($1) + ":" + $2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue