added file creation feature for project specific library linkage to KicED

master
polymurph 2 years ago
parent a4e9ecbff5
commit 716ecadbc1

@ -45,13 +45,36 @@ baseRelativeBasePath = os.path.join("${KIPRJMOD}", relative_path)
print(baseRelativeBasePath)
fps = getFootprinLibrarys(footprintPath)
sps = getSymbolsLibrarys(symbolsPath)
temp = []
for f in fps:
print(f)
pth = os.path.join(baseRelativeBasePath, "symbols")
temp.append(os.path.join(pth, f))
fps = temp
sps = getSymbolsLibrarys(symbolsPath)
temp = []
for f in sps:
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)
Loading…
Cancel
Save