This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vinay.sajip
Recipients lemburg, python-dev, vinay.sajip
Date 2014-06-11.09:25:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402478720.7.0.302746095911.issue21709@psf.upfronthosting.co.za>
In-reply-to
Content
> Could you please use a fix that works for Python tools in general?

I suggested an alternative implementation altogether in Issue #16778, but it was suggested that we wait for frame annotations. I'm not sure what the schedule for that is.

> The sys.frozen flag is not an official Python API and it's unlikely to become one

Would using imp.is_frozen('logging') rather than hasattr(sys, 'frozen') meet your requirement here? I'm not saying it's the ideal solution, but perhaps it will do until frame annotations arrive and we can avoid using filenames altogether?
History
Date User Action Args
2014-06-11 09:25:20vinay.sajipsetrecipients: + vinay.sajip, lemburg, python-dev
2014-06-11 09:25:20vinay.sajipsetmessageid: <1402478720.7.0.302746095911.issue21709@psf.upfronthosting.co.za>
2014-06-11 09:25:20vinay.sajiplinkissue21709 messages
2014-06-11 09:25:20vinay.sajipcreate