Add paths for local dependencies when running PyInstaller
jasonjho opened this issue · 3 comments
jasonjho commented
If you have Python modules required by main.py
in the same directory, it seems that PyInstaller will not pick these up by default. Adding a --paths
argument to PyInstaller may do the trick.
I'll be happy to put together a PR for this.
Great work!
MartinSahlen commented
As long as any module is explicitly imported it should work I think. Can you point to a non-working example? And also, a PR would be greatly appreciated. Pretty over worked these days 😅
jasonjho commented
#22 is open for review. I don't have a non-working example atm, but I'm fairly certain that my main py file that includes local/relative imports produced an ImportError
at runtime. Adding --paths
fixed the issue.
MartinSahlen commented
Closed by #22