mirror of
https://github.com/Ralim/IronOS-Meta.git
synced 2025-04-15 11:27:48 +00:00
Update to generate nicer flipped logo file names (#29)
* Update img2logo.py * Update img2logo.py
This commit is contained in:
@@ -238,10 +238,17 @@ def img2hex(
|
||||
deviceSettings = MiniwareSettings
|
||||
if isPinecil:
|
||||
deviceSettings = PinecilSettings
|
||||
# Generate both possible outputs
|
||||
output_name = output_filename_base + os.path.basename(input_filename)
|
||||
|
||||
# Split name from extension so we can mangle in the _L suffix for flipped images
|
||||
split_name = os.path.splitext( os.path.basename(input_filename))
|
||||
|
||||
if flip:
|
||||
output_name +="_L"
|
||||
base = split_name[0]
|
||||
ext = split_name[1]
|
||||
base =base+"_L"
|
||||
split_name = [base,ext]
|
||||
output_name = output_filename_base +split_name[0] +split_name[1]
|
||||
|
||||
DFUOutput.writeFile(
|
||||
output_name + ".dfu",
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user