Received: from eggs.gnu.org ([140.186.70.92]:51665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFucG-0004gG-V2 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 17:21:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFucF-0006b2-7m for qemu-devel@nongnu.org; Mon, 17 Oct 2011 17:21:00 -0400 Received: from mout.perfora.net ([74.208.4.194]:55376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFucF-0006aw-2M for qemu-devel@nongnu.org; Mon, 17 Oct 2011 17:20:59 -0400 From: Michael Roth In-Reply-To: <1318865377-3328-3-git-send-email-lcapitulino@redhat.com> References: <1318865377-3328-1-git-send-email-lcapitulino@redhat.com> <1318865377-3328-3-git-send-email-lcapitulino@redhat.com> Date: Mon, 17 Oct 2011 16:20:46 -0500 Message-Id: <0MdJxT-1RYPN13aNv-00IGAr@mrelay.perfora.net> Subject: Re: [Qemu-devel] [PATCH 2/4] qapi-types.py: Don't build paths by hand List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, qemu-devel@nongnu.org Reviewed-by: Michael Roth On Mon, 17 Oct 2011 13:29:35 -0200, Luiz Capitulino wrote: > Use os.path.join() instead. > > Signed-off-by: Luiz Capitulino > --- > scripts/qapi-types.py | 6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py > index 986ff1e..8df4b72 100644 > --- a/scripts/qapi-types.py > +++ b/scripts/qapi-types.py > @@ -177,10 +177,10 @@ if __name__ == '__main__': > if o in ("-p", "--prefix"): > prefix = a > elif o in ("-o", "--output-dir"): > - output_dir = a + "/" > + output_dir = a > > - c_file = output_dir + prefix + c_file > - h_file = output_dir + prefix + h_file > + c_file = os.path.join(output_dir, prefix + c_file) > + h_file = os.path.join(output_dir, prefix + h_file) > > try: > os.makedirs(output_dir) > -- > 1.7.7.rc3 > -- Sincerely, Mike Roth IBM Linux Technology Center