ϪfP`dZddlZGddeZGddeZGddeZd d Zd Zy) zf A release-automation toolkit. Don't use this outside of Twisted. Maintainer: Christopher Armstrong NceZdZdZy)DirectoryExistsz2 Some directory exists when it shouldn't. N__name__ __module__ __qualname____doc__8/usr/lib/python3/dist-packages/twisted/python/release.pyrr  r rceZdZdZy)DirectoryDoesntExistz6 Some directory doesn't exist when it should. Nrr r r rrr r rc eZdZy) CommandFailedN)rrrr r r rr"sr rctd||rtdjdry|rd|z}tj|dk7r t |y)z I'll try to execute C{command}, and if C{prompt} is true, I'll ask before running it. If the command returns something other than 0, I'll raise C{CommandFailed(command)}. z--$zrun ?? nNz%s > /dev/nullr)printinput startswithossystemr)commandnullprompts r shr)sU  %   & &s +  "W, yyQG$$r ctjjd} ||i|tj|S#tj|wxYw)N.)rpathabspathchdir)fargskworigdirs r runChdirSafer&:s=ggooc"G$~"~ s >A)TF)r rOSErrorrrrrr&r r r r(s=  g  7  G %"r