C:\deluge2\deluge\packaging\win\freeze\Deluge>
}}}
Quick fix is to in pyinstaller spec, add either an extra line of:
{{{
datas +=
collect_data_files('deluge.ui.console',True,[],["**/__pycache__"])
}}}
Or, alternatively prepend a few extra args to line 108 so becomes:
{{{
package_data = collect_data_files('deluge',True,[],["**/__pycache__"])
)
}}}
Though latter adds 1.5MiB unneeded files extra.
Anyway, the issue here is deluge.ui.console's __init.py__ declaring:
{{{
UI_PATH = __path__[0]
}}}
And deluge.ui.console.console using it like:
{{{
self.console_cmds = load_commands(os.path.join(UI_PATH, 'cmdline',
'commands'))
}}}
So all files correctly picked up and bundled by pyinstaller, but just
looked for in wrong place because of this.
I'm making bug-ticket and not PR because don't know how you want tackling
this, i.e. if wanting change UI_PATH mechanism instead possibly.
Thanks in advance!
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3546>
Deluge <https://deluge-torrent.org/>
Deluge Project
Comment (by mhertz):
Sorry I made a typo in the alternative(less good) solution, with a
trailing newline with a ')', and I also wrote prepend instead of append.
While posting, i'll readd both solutions in more "proper" form to save you
little time in case using one of them:
{{{
datas += collect_data_files('deluge.ui.console', include_py_files=True,
excludes=["**/__pycache__"])
}}}
{{{
package_data = collect_data_files('deluge', include_py_files=True,
excludes=["**/__pycache__"])
}}}
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3546#comment:1>