Skip to content

Commit

Permalink
de-confuse 'package_folder_prefix' parameter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
sommersoft committed May 15, 2019
1 parent 0e839df commit 7f8af94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions circuitpython_build_tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _munge_to_temp(original_path, temp_file, library_version):
temp_file.write(line.encode("utf-8") + b"\r\n")
temp_file.flush()

def library(library_path, output_directory, pkg_folder_prefix, mpy_cross=None, example_bundle=False):
def library(library_path, output_directory, package_folder_prefix, mpy_cross=None, example_bundle=False):
py_files = []
package_files = []
example_files = []
Expand Down Expand Up @@ -138,7 +138,7 @@ def library(library_path, output_directory, pkg_folder_prefix, mpy_cross=None, e
#print("- example files: {}".format(example_files))
else:
if (not example_bundle and
not filename.startswith(pkg_folder_prefix)):
not filename.startswith(package_folder_prefix)):
#print("skipped path: {}".format(full_path))
continue
if not example_bundle:
Expand Down
4 changes: 2 additions & 2 deletions circuitpython_build_tools/scripts/build_bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def add_file(bundle, src_file, zip_name):
return file_sector_size


def build_bundle(libs, bundle_version, output_filename, pkg_folder_prefix,
def build_bundle(libs, bundle_version, output_filename, package_folder_prefix,
build_tools_version="devel", mpy_cross=None, example_bundle=False):
build_dir = "build-" + os.path.basename(output_filename)
top_folder = os.path.basename(output_filename).replace(".zip", "")
Expand All @@ -69,7 +69,7 @@ def build_bundle(libs, bundle_version, output_filename, pkg_folder_prefix,
success = True
for library_path in libs:
try:
build.library(library_path, build_lib_dir, pkg_folder_prefix,
build.library(library_path, build_lib_dir, package_folder_prefix,
mpy_cross=mpy_cross, example_bundle=example_bundle)
except ValueError as e:
print("build.library failure:", library_path)
Expand Down

0 comments on commit 7f8af94

Please sign in to comment.