Commit e7dd5cda authored by David Boddie's avatar David Boddie 💬
Browse files

Merge branch 'make-copying-script-less-verbose' into 'master'

Make file copying less verbose

See merge request Librem5/!354
parents 7337f8bc e5f952e1
...@@ -55,10 +55,11 @@ def copy_files(src, dest, html_dir): ...@@ -55,10 +55,11 @@ def copy_files(src, dest, html_dir):
print('Creating', new_dir) print('Creating', new_dir)
os.mkdir(new_dir) os.mkdir(new_dir)
print('Copying', src, 'to', new_dir)
for path in glob.glob(src): for path in glob.glob(src):
file_name = os.path.split(path)[1] file_name = os.path.split(path)[1]
dest_path = os.path.join(new_dir, file_name) dest_path = os.path.join(new_dir, file_name)
print('Copying', path, 'to', dest_path)
shutil.copy2(path, dest_path) shutil.copy2(path, dest_path)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment