Skip to content

Revert "Include mpy-cross '__init__.py' In Packages; Restructure Package Bundling" #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2019

Conversation

kattni
Copy link
Contributor

@kattni kattni commented May 7, 2019

Reverts #31

We've seriously blocked PRs, so we're reverting for now.

@kattni kattni merged commit 7804a09 into master May 7, 2019
py_files = []
package_files = []
example_files = []
total_size = 512
for filename in os.listdir(library_path):
full_path = os.path.join(library_path, filename)
if os.path.isdir(full_path):
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I suspect that this isn't doing what it really was intending, which is to walk the directory structure looking for python .py files

excludes=[ "docs", "examples" ]
walked_files = []
root_dir = os.getcwd()
for root, dirs, files in os.walk( root_dir ):
    dirs[:] = [d for d in dirs if d not in excludes]
    for file in files:
        rel_dir = os.path.relpath(root, root_dir)
        walked_files.append( os.path.join(rel_dir, file) )
files = filter(lambda x: x.endswith(".py") or x.startswith("font5x8.bin"), walked_files)
print files

seems like it's a closer solution to what was being attempted here

@dhalbert dhalbert deleted the revert-31-include_init branch October 27, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants