Skip to content

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