
from highSpeedSandwitch.hss import *

if __name__ == '__main__':
    roots = [
        'C:\Workspace\LumedProject\Lumed.Platform\Import\Lumed.Import.Clinical\Interpreters',
        'C:\Workspace\LumedProject\Lumed.Platform\Import\Lumed.Import.Clinical.Tests\Interperters'
    ]
    pre = 'namespace Lumed.Import.Clinical.Interpreters'
    for root in roots:
        print('scan',root)
        Dir,Load,Rload = Fs(root)
        for pth,_ in Dir('.cs'):
            #print(pth)
            for line,rown in Load(pth):
                if line.startswith(pre):
                    a = pth.replace(root,'').split('/')[0].split('\\')
                    b = line.replace(pre,'').replace(' {','').split('.')
                    if (a != b):
                        print('found',a,'\n != ',b,'\n','at',pth)
                        print('maybe',pre + ('.'.join(a)))
