Skip to content

Commit b7c56e5

Browse files
committed
Update build.py
1 parent f8160ff commit b7c56e5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pcm/build.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ def findReplace(directory, find, replace, filePattern):
4040
shutil.copytree(path.join(src_path,'footprints'), path.join('content','footprints'), dirs_exist_ok = True)
4141
shutil.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):
9999
shutil.copytree(path.join(src_path,'footprints'), path.join('content','footprints'), dirs_exist_ok = True)
100100
shutil.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
108108
shutil.copytree(resources_path, path.join('content','resources'))

0 commit comments

Comments
 (0)