Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21619 > unrolled thread
| Started by | Chris Rebert <clp2@rebertia.com> |
|---|---|
| First post | 2012-03-14 11:54 -0700 |
| Last post | 2012-03-14 11:54 -0700 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Global join function? Chris Rebert <clp2@rebertia.com> - 2012-03-14 11:54 -0700
| From | Chris Rebert <clp2@rebertia.com> |
|---|---|
| Date | 2012-03-14 11:54 -0700 |
| Subject | Re: Global join function? |
| Message-ID | <mailman.645.1331751274.3037.python-list@python.org> |
On Wed, Mar 14, 2012 at 11:41 AM, Darrel Grant <darrel343@gmail.com> wrote:
> In the virtualenv example bootstrap code, a global join function is used.
>
> http://pypi.python.org/pypi/virtualenv
>
> subprocess.call([join(home_dir, 'bin', 'easy_install'),
> 'BlogApplication'])
>
>
> In interpeter, I tried this:
>
>>>> [join([], 'bin', 'easy_install')]
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> 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
Back to top | Article view | comp.lang.python
csiph-web