mirror of
https://github.com/richonguzman/LoRa_APRS_iGate.git
synced 2026-01-24 01:30:15 +01:00
20 lines
349 B
Python
20 lines
349 B
Python
import gzip
|
|
|
|
files = [
|
|
'data_embed/index.html',
|
|
'data_embed/script.js',
|
|
'data_embed/style.css',
|
|
'data_embed/bootstrap.js',
|
|
'data_embed/bootstrap.css',
|
|
]
|
|
|
|
|
|
for src in files:
|
|
out = src + ".gz"
|
|
|
|
|
|
with open(src, 'rb') as f:
|
|
content = f.read()
|
|
|
|
with open(out, 'wb') as f:
|
|
f.write(gzip.compress(content, compresslevel=9)) |