It’s the parent directory of your custom package that needs adding to sys.path (controlled via pathex). pathex=[‘C:\Users’], should do it. You’ll probably need to rebuild adding the —clean option (or you can just delete the build folder). That said, using pathex at all is a symptom of poor package design. Turn your code into a pip-installable Python package with a setup.py <https://python-packaging.readthedocs.io/en/latest/index.html> and you’ll never have issues like this again.
-- You received this message because you are subscribed to the Google Groups "PyInstaller" group. To unsubscribe from this group and stop receiving emails from it, send an email to pyinstaller+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/322cde17-8eb1-41b4-8077-042b905c1019n%40googlegroups.com.