Skip to content
This repository was archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
TestFlight: Filter out .pyc files
Browse files Browse the repository at this point in the history
  • Loading branch information
keymixcookbook committed Jul 24, 2021
1 parent c365ae3 commit 0cd53bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion _pkg_KuFunc/mod_TestFlight.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def _version_():
version 3.1
- add reload button
- filter out `.pyc` files
version 3.0
- change core function to compile()
Expand Down Expand Up @@ -285,7 +286,8 @@ def listFiles(dirpath):
'''list files in the given dir'''

path_draft = dirpath.replace('\\', '/')
ls_files = [p for p in os.listdir(path_draft) if p.startswith('upt_') or p.startswith('mod_') or p.startswith('dft') and p.endswith('.py')]
ls_files = [p for p in os.listdir(path_draft) if p.startswith('upt_') or p.startswith('mod_') or p.startswith('dft_')]
ls_files = [f for f in ls_files if f.endswith('.py')]

return ls_files

Expand Down

0 comments on commit 0cd53bd

Please sign in to comment.