|
|
@ -45,13 +45,36 @@ baseRelativeBasePath = os.path.join("${KIPRJMOD}", relative_path)
|
|
|
|
|
|
|
|
|
|
|
|
print(baseRelativeBasePath)
|
|
|
|
print(baseRelativeBasePath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fps = getFootprinLibrarys(footprintPath)
|
|
|
|
fps = getFootprinLibrarys(footprintPath)
|
|
|
|
|
|
|
|
sps = getSymbolsLibrarys(symbolsPath)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
temp = []
|
|
|
|
for f in fps:
|
|
|
|
for f in fps:
|
|
|
|
print(f)
|
|
|
|
pth = os.path.join(baseRelativeBasePath, "symbols")
|
|
|
|
|
|
|
|
temp.append(os.path.join(pth, f))
|
|
|
|
sps = getSymbolsLibrarys(symbolsPath)
|
|
|
|
fps = temp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
temp = []
|
|
|
|
for f in sps:
|
|
|
|
for f in sps:
|
|
|
|
print(f)
|
|
|
|
pth = os.path.relpath(f,cwd)
|
|
|
|
|
|
|
|
pth = os.path.join(baseRelativeBasePath,pth)
|
|
|
|
|
|
|
|
temp.append(pth)
|
|
|
|
|
|
|
|
sps = temp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if 1:
|
|
|
|
|
|
|
|
for f in fps:
|
|
|
|
|
|
|
|
print(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
for f in sps:
|
|
|
|
|
|
|
|
print(f)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
os.chdir(pathToProjectFolder)
|
|
|
|
|
|
|
|
print(pathToProjectFolder)
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
with open("sym-lib-table",'w') as file:
|
|
|
|
|
|
|
|
file.write("(fp_lib_table\n (version 7)\n)")
|
|
|
|
|
|
|
|
os.chdir(cwd)
|
|
|
|
|
|
|
|
except FileNotFoundError:
|
|
|
|
|
|
|
|
print("fail")
|
|
|
|
|
|
|
|
os.chdir(cwd)
|