warn* file

2 views
Skip to first unread message

mathieu

unread,
Apr 23, 2007, 9:12:53 AM4/23/07
to PyInstaller
Hello,

I am continuing my efforts to automate PyInstaller, and I would like
to now redirect warning to the shell. I can fairly easily reread the
warn* file and then dump it. But my issue is that there are a lot of
false positive warning in the file. Is there a way to know which
warning was actually a problem (simply not found) ?

Thanks !
-Mathieu

Giovanni Bajo

unread,
Apr 27, 2007, 6:44:06 AM4/27/07
to PyIns...@googlegroups.com

Alas, it's not possible, because otherwise the false positive problem
would be fixed and the warning wouldn't be there in the first place...

I think one thing that could be done is to "whitelist" usual false
positives in the standard library (like those in os.py or similar).
--
Giovanni Bajo

Don Dwiggins

unread,
Apr 27, 2007, 1:28:16 PM4/27/07
to pyins...@googlegroups.com

Alternatively, for a particular application, run the file through
something like "grep -v" to drop out the expected warnings; this can get
both the python-specific warnings and those related to the packages you
use. (You could even automate it with a bit of code at the end of the
.spec file.)

--
Don Dwiggins
Advanced Publishing Technology

Reply all
Reply to author
Forward
0 new messages