Skip to content

Commit

Permalink
[#370] Updated DisplayCAL.freeze code formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
eoyilmaz committed Oct 9, 2024
1 parent 7186b98 commit 6d718ca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions DisplayCAL/freeze.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-

"""This script is used by the py2exe to freeze the library into executables.
"""
import sys
import functools
import shutil
Expand Down Expand Up @@ -175,7 +176,7 @@ def findall(dir=os.curdir):
"xrc/*.xrc",
]
},
"xtra_package_data": {name: {"win32": ["theme/icons/%s-uninstall.ico" % name]}},
"xtra_package_data": {name: {"win32": [f"theme/icons/{name}-uninstall.ico"]}},
}


Expand Down Expand Up @@ -724,7 +725,7 @@ def build_py2exe():
"mfc90.dll",
],
"excludes": config["excludes"]["all"] + config["excludes"]["win32"],
"bundle_files": 3 if wx.VERSION >= (2, 8, 10, 1) else 1,
"bundle_files": 3, # if wx.VERSION >= (2, 8, 10, 1) else 1,
"compressed": 1,
"optimize": 0, # 0 = don’t optimize (generate .pyc)
# 1 = normal optimization (like python -O)
Expand Down

0 comments on commit 6d718ca

Please sign in to comment.