kopia lustrzana https://github.com/micropython/micropython-lib
Removed shell command from copy function's docstring
rodzic
ee1934091b
commit
aa3a74d3ea
12
installer
12
installer
|
@ -116,16 +116,8 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=shutil.copy2,
|
|||
|
||||
|
||||
def copy(source_dir, dest_dir):
|
||||
"""
|
||||
Copy modules to a lib location.
|
||||
|
||||
This was a shell command:
|
||||
cmd = "find . -maxdepth 1 -mindepth 1 ( -name '*.py' -not -name 'test_*' -not -name 'setup.py' )
|
||||
-or ( -type d -not -name 'dist' -not -name '*.egg-info' -not -name '__pycache__' )
|
||||
| xargs --no-run-if-empty cp -r -t $(PREFIX)"
|
||||
Deleted the backslashes from the above shell command for the benefit of syntastic
|
||||
"""
|
||||
ignore = shutil.ignore_patterns('*.py', 'test_*', 'setup.py', 'dist', '*.ogg-info', '__pycache__')
|
||||
"""Copy modules to a lib location."""
|
||||
ignore = shutil.ignore_patterns('test_*', 'setup.py', 'dist', '*.ogg-info', '__pycache__')
|
||||
copytree(source_dir, dest_dir, symlinks=True, ignore=ignore, ignore_dangling_symlinks=False)
|
||||
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue