[Win32] Fix output exes in bbfreeze

This commit is contained in:
Calum Lind 2015-09-13 22:47:31 +01:00
parent 7532d4d333
commit ff6b52edc6
1 changed files with 6 additions and 1 deletions

View File

@ -86,7 +86,12 @@ fzr.setIcon(os.path.join(os.path.dirname(deluge.common.__file__), "ui", "data",
# TODO: Can/should we grab the script list from setup.py entry_points somehow. # TODO: Can/should we grab the script list from setup.py entry_points somehow.
# Hide cmd console popup for these console entries force gui_script True. # Hide cmd console popup for these console entries force gui_script True.
force_gui = ["deluge-web", "deluged", "deluge-console"] force_gui = ["deluge-web", "deluged"]
for force_script in force_gui:
script_path = os.path.join(python_path, "Scripts", force_script + "-script.py")
shutil.copy(script_path, script_path.replace("script", "debug-script"))
script_list = [] script_list = []
for script in glob.glob(os.path.join(python_path, "Scripts\\deluge*-script.py*")): for script in glob.glob(os.path.join(python_path, "Scripts\\deluge*-script.py*")):
# Copy the scripts to remove the '-script' suffix before adding to freezer. # Copy the scripts to remove the '-script' suffix before adding to freezer.