@@ -40,10 +40,10 @@ def findReplace(directory, find, replace, filePattern):
4040shutil .copytree (path .join (src_path ,'footprints' ), path .join ('content' ,'footprints' ), dirs_exist_ok = True )
4141shutil .copytree (path .join (src_path ,'3dmodels' ), path .join ('content' ,'3dmodels' ), dirs_exist_ok = True )
4242
43- # Replace every occurrence of "(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/3d-library.3dshapes/ "
44- # with "(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_sparkfun-kicad-libraries/3d-library.3dshapes/ "
45- findReplace (path .join ('content' ), b'(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/3d-library.3dshapes/ ' ,
46- b'(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_SparkFun-KiCad-Libraries/3d-library.3dshapes/ ' , '*.*' )
43+ # Replace every occurrence of "(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/"
44+ # with "(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_sparkfun-kicad-libraries/"
45+ findReplace (path .join ('content' ), b'(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/' ,
46+ b'(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_SparkFun-KiCad-Libraries/' , '*.*' )
4747
4848# This is the with-PCM_ version
4949# Replace every occurrence of ""Footprint" "SparkFun-"
@@ -99,10 +99,10 @@ def findReplace(directory, find, replace, filePattern):
9999shutil .copytree (path .join (src_path ,'footprints' ), path .join ('content' ,'footprints' ), dirs_exist_ok = True )
100100shutil .copytree (path .join (src_path ,'3dmodels' ), path .join ('content' ,'3dmodels' ), dirs_exist_ok = True )
101101
102- # Replace every occurrence of "(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/3d-library.3dshapes/ "
103- # with "(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_sparkfun-kicad-libraries/3d-library.3dshapes/ "
104- findReplace (path .join ('content' ), b'(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/3d-library.3dshapes/ ' ,
105- b'(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_SparkFun-KiCad-Libraries/3d-library.3dshapes/ ' , '*.*' )
102+ # Replace every occurrence of "(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/"
103+ # with "(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_sparkfun-kicad-libraries/"
104+ findReplace (path .join ('content' ), b'(model "${SPARKFUN_KICAD_LIBRARY}/3dmodels/' ,
105+ b'(model "${KICAD9_3RD_PARTY}/3dmodels/com_github_sparkfun_SparkFun-KiCad-Libraries/' , '*.*' )
106106
107107# Copy icon
108108shutil .copytree (resources_path , path .join ('content' ,'resources' ))
0 commit comments