mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
15 lines
323 B
Python
15 lines
323 B
Python
import glob
|
|
import shutil
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
output_base = sys.argv[2]
|
|
|
|
for f in glob.glob(sys.argv[1] + '/*.png'):
|
|
res = f.split('/')[-1].split('.')[0]
|
|
dest_dir = output_base + '/' + res + '/apps'
|
|
|
|
Path(dest_dir).mkdir(parents=True, exist_ok=True)
|
|
|
|
shutil.copy(f, dest_dir + '/bauh.png')
|