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 davin
Recipients davin, paul.moore, schlamar, steve.dower, tim.golden, zach.ware
Date 2016-02-26.16:33:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1456504398.0.0.501234833112.issue26434@psf.upfronthosting.co.za>
In-reply-to
Content
I can reproduce the problem under Windows 7.  Thank you for your example and description -- they were very helpful.

Detection that the original parent was PythonService.exe is necessary to avoid undoing the paths set appropriately for running under a service.  The current code only detects the immediate parent.

Modifying get_preparation_data() in lib/multiprocessing/forking.py to perform an additional test on the inherited values from the original parent's sys.argv (available via the preparation_data key 'sys_argv') would resolve this:
    if not d['sys_argv'][0].lower().endswith("pythonservice.exe"):
        ....

Potential complications to existing code appear very unlikely given its nature.

Patch forthcoming after running tests unless someone wants to beat me to it.
History
Date User Action Args
2016-02-26 16:33:18davinsetrecipients: + davin, paul.moore, tim.golden, schlamar, zach.ware, steve.dower
2016-02-26 16:33:18davinsetmessageid: <1456504398.0.0.501234833112.issue26434@psf.upfronthosting.co.za>
2016-02-26 16:33:17davinlinkissue26434 messages
2016-02-26 16:33:17davincreate