1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

tools: skip hidden files in res_collect

This commit is contained in:
Pavol Rusnak 2016-10-06 17:54:57 +02:00
parent 81a8f0b9bc
commit 90836621f5
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -12,6 +12,8 @@ def process_file(name):
return
if name.endswith('.py'):
return
if os.path.basename(name).startswith('.'):
return
with open(name, 'rb') as f:
data = f.read()
resources[name] = data