Skip to content

Commit 7f8af94

Browse files
committed
de-confuse 'package_folder_prefix' parameter naming
1 parent 0e839df commit 7f8af94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

circuitpython_build_tools/build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def _munge_to_temp(original_path, temp_file, library_version):
100100
temp_file.write(line.encode("utf-8") + b"\r\n")
101101
temp_file.flush()
102102

103-
def library(library_path, output_directory, pkg_folder_prefix, mpy_cross=None, example_bundle=False):
103+
def library(library_path, output_directory, package_folder_prefix, mpy_cross=None, example_bundle=False):
104104
py_files = []
105105
package_files = []
106106
example_files = []
@@ -138,7 +138,7 @@ def library(library_path, output_directory, pkg_folder_prefix, mpy_cross=None, e
138138
#print("- example files: {}".format(example_files))
139139
else:
140140
if (not example_bundle and
141-
not filename.startswith(pkg_folder_prefix)):
141+
not filename.startswith(package_folder_prefix)):
142142
#print("skipped path: {}".format(full_path))
143143
continue
144144
if not example_bundle:

circuitpython_build_tools/scripts/build_bundles.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def add_file(bundle, src_file, zip_name):
4848
return file_sector_size
4949

5050

51-
def build_bundle(libs, bundle_version, output_filename, pkg_folder_prefix,
51+
def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
5252
build_tools_version="devel", mpy_cross=None, example_bundle=False):
5353
build_dir = "build-" + os.path.basename(output_filename)
5454
top_folder = os.path.basename(output_filename).replace(".zip", "")
@@ -69,7 +69,7 @@ def build_bundle(libs, bundle_version, output_filename, pkg_folder_prefix,
6969
success = True
7070
for library_path in libs:
7171
try:
72-
build.library(library_path, build_lib_dir, pkg_folder_prefix,
72+
build.library(library_path, build_lib_dir, package_folder_prefix,
7373
mpy_cross=mpy_cross, example_bundle=example_bundle)
7474
except ValueError as e:
7575
print("build.library failure:", library_path)

0 commit comments

Comments
 (0)