From this SO question: the user had specified
targetDir='dist' for the Executable arguments in a setup.py file.
This is one of various options that doesn't make sense to set per-executable. The executable cannot work without its supporting libraries, so the target directory should only be set for the whole freezing process.
I'd be inclined to remove the
targetDir option entirely, to avoid confusing people. Although for backwards compatibility, it might be better to ignore it and issue a warning if it's specified. Are there any valid use cases for setting it?