Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'broken.': 0.07; 'question:': 0.07; 'used.': 0.07; 'url:pypi': 0.08; '>>>>': 0.09; 'googling': 0.09; 'nameerror:': 0.09; 'snippets': 0.09; 'am,': 0.12; 'bootstrap': 0.16; 'elsewhere,': 0.16; 'skip:\xc2 30': 0.16; 'subject:function': 0.16; 'url:virtualenv': 0.16; 'cc:addr:python- list': 0.16; 'this:': 0.16; 'wed,': 0.17; 'wrote:': 0.18; 'seems': 0.20; 'cheers,': 0.20; '(most': 0.21; 'cc:no real name:2**0': 0.21; 'header:In-Reply-To:1': 0.22; 'defined': 0.24; 'string': 0.24; 'traceback': 0.24; 'cc:2**0': 0.26; 'function': 0.27; 'import': 0.27; 'tried': 0.27; 'code,': 0.28; 'message- id:@mail.gmail.com': 0.29; 'example': 0.29; "skip:' 10": 0.29; 'cc:addr:python.org': 0.29; 'line:': 0.30; 'chris': 0.30; 'url:library': 0.31; 'subject:?': 0.31; "i've": 0.32; 'last):': 0.34; 'url:python': 0.35; 'received:209.85.214': 0.36; 'but': 0.37; 'received:google.com': 0.37; 'received:209.85': 0.38; 'think': 0.38; 'url:org': 0.39; 'received:209': 0.39; 'missing': 0.40; 'join': 0.61; 'is.': 0.63; 'results': 0.64; 'subject:join': 0.64; 'show': 0.66; '11:41': 0.84; 'join,': 0.84; 'sender:addr:chris': 0.84; 'url:join': 0.91; 'presumably': 0.93; 'subject:Global': 0.95 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OsjSGGxpSRNmBqj21niKH4Gku9tGhkdpuCzjUyiESmw=; b=C2pob92ZiDvIRhk2/z01ead5CgqYVpIMnyEqJdTRV8lifghy+9zVJlh+UcOgL4CX2k Q8IA3bh+UBUrGjaJzfrTwaMgUgLAROY4Y7uGLUpV1IrElLQRCWzsXIKCtnLLDNwdsiem 2oeKMQ/+EoeFccDo6AzsOsTPjXOmKJzRlfsaA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding:x-gm-message-state; bh=OsjSGGxpSRNmBqj21niKH4Gku9tGhkdpuCzjUyiESmw=; b=VVpIC6Zalyc3H0L7G3CNxWR3folszjciHpenWZRHUrYSD54qCilJoLn1jzybr07grd Bjh/DRuoGKwhgbZbikFJUfniFhFHqPzmZhwkduEb4vvw0zg8g5PMVqZ8cHnZUU6wVNYY 4hk5QlJ0PSbbz2lw4QCzDWb0TnUwyHESNR2E21wdZrMa/a/EUI7W4KBeQZJvJxFNEFvj moZhQ83MI9KEr2NtBcLq3JMzc7hlFm6wiqrJNHmxx+iQxP6sUgVc4q7fzYACHfS9RhoD 8OFEU5v7+qAtI/7h7DIquMOEj0l8QhDf75wunlzOWZqps8c9JJH8pb0mz2ox0Chv5Kgc P7Aw== MIME-Version: 1.0 Sender: chris@rebertia.com In-Reply-To: References: Date: Wed, 14 Mar 2012 11:54:32 -0700 X-Google-Sender-Auth: Ohk0D7mdorGpOQzKEHZCsHTNVHE Subject: Re: Global join function? From: Chris Rebert To: Darrel Grant Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQmEfVMM5qVK0KiMWLATkSVrnUqkt6Cke7Q7tDFCGoSlAg1kkBaFHkywvbqiiZ+6eELWxNFh Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1331751274 news.xs4all.nl 6987 [2001:888:2000:d::a6]:36003 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21619 On Wed, Mar 14, 2012 at 11:41 AM, Darrel Grant wrote: > In the virtualenv example bootstrap code, a global join function is used. > > http://pypi.python.org/pypi/virtualenv > > =C2=A0 =C2=A0subprocess.call([join(home_dir, 'bin', 'easy_install'), > =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 'Bl= ogApplication']) > > > In interpeter, I tried this: > >>>> [join([], 'bin', 'easy_install')] > Traceback (most recent call last): > =C2=A0File "", line 1, in > NameError: name 'join' is not defined > > I think I've seen this used elsewhere, but googling only seems to show > results about the string method join, not whatever this is. Those example snippets are broken. They're presumably missing the line: from os.path import join Docs for the function in question: http://docs.python.org/library/os.path.html#os.path.join Cheers, Chris