From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 31FE4138855 for ; Mon, 4 Feb 2013 16:07:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DCFCE02C4; Mon, 4 Feb 2013 16:07:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 24500E002E for ; Mon, 4 Feb 2013 16:07:09 +0000 (UTC) Received: from [192.168.26.5] (ip98-164-195-43.oc.oc.cox.net [98.164.195.43]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 37E6933DDDD for ; Mon, 4 Feb 2013 16:07:08 +0000 (UTC) Message-ID: <510FDCAA.6010900@gentoo.org> Date: Mon, 04 Feb 2013 08:07:06 -0800 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:17.0) Gecko/20130112 Thunderbird/17.0.2 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] meaning of EROOT References: <87wqupsljq.fsf@proton.in.awa.tohoku.ac.jp> <510F9505.30304@gentoo.org> In-Reply-To: <510F9505.30304@gentoo.org> X-Enigmail-Version: 1.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: 2e20a77f-7738-46df-b03e-79244a6bfd4e X-Archives-Hash: 290bef53039950e107def59c8d28b000 On 02/04/2013 03:01 AM, Michael Weber wrote: > On 02/03/2013 12:07 PM, heroxbd wrote: >> self.eroot = self.target_root.rstrip(os.sep) + self.eprefix + os.sep > wouldn't be this more robust > >>>> import os >>>> os.path.normpath('/some/' + os.path.sep + '/stuff/') + os.path.sep > '/some/stuff/' In this context, the relevant paths have already been normalized earlier. -- Thanks, Zac