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 and you’ll never have issues like this again.
On May 13, 2022, at 8:46 AM, Paul Fishback <fishba...@gmail.com> wrote:
I have a script that utilizes a custom module named "utils." At the start of the main script, I import functions from scripts contained within "utils," such as "from utils.general import helper."
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pyinstaller/e28ebb38-5c58-407e-b955-2f2f74536b13n%40googlegroups.com.