[Twisted-Python] "twistd" in Twisted 16.4.0 can't import modules/packages from current working directory

Glyph Lefkowitz glyph at twistedmatrix.com
Tue Feb 7 12:29:28 MST 2017


> On Feb 7, 2017, at 6:59 AM, Jean-Paul Calderone <exarkun at twistedmatrix.com> wrote:
> 
> On Fri, Jan 13, 2017 at 1:13 AM, Glyph Lefkowitz <glyph at twistedmatrix.com <mailto:glyph at twistedmatrix.com>> wrote:
> Thanks for highlighting those.  I've put the link in the other direction as well.
> 
> 
> Craig seems eager to go ahead with reverting this change in behavior.
> 
> https://github.com/twisted/twisted/pull/672#issuecomment-275956265 <https://github.com/twisted/twisted/pull/672#issuecomment-275956265>
> 
> As far as I can tell, no one has weighed in on the other side.  So I'm inclined to go along with the reversion.

My 2ยข for the other side is: if trial does this, but twist and twistd don't, then it will be possible to get a passing test run for a plugin that doesn't get loaded.  I think it would be simpler and easier to debug to leave these consistent.

(I really don't think we should put this behavior back into twist or twistd, because "cd malware; twist web --path ." should not pwn your machine.)

-glyph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170207/5dce8d31/attachment-0002.html>


More information about the Twisted-Python mailing list