mirror of
https://github.com/dobin/avred
synced 2026-06-08 13:54:13 +00:00
18 lines
360 B
Python
18 lines
360 B
Python
import logging
|
|
import os
|
|
|
|
|
|
class FilePlain():
|
|
def __init__(self):
|
|
self.filepath = None
|
|
self.filename = None
|
|
self.data = b""
|
|
|
|
|
|
def loadFromFile(self, filepath: str):
|
|
self.filepath = filepath
|
|
self.filename = os.path.basename(filepath)
|
|
|
|
with open(self.filepath, "rb") as f:
|
|
self.data = f.read()
|