Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #81636

RE: Where is path.py?

From David Aldrich <David.Aldrich@EMEA.NEC.COM>
Subject RE: Where is path.py?
Date 2014-11-27 15:30 +0000
Newsgroups comp.lang.python
Message-ID <mailman.16370.1417104234.18130.python-list@python.org> (permalink)

Show all headers | View raw


> The syntax:

>    from <module> import <name>

> will import the name <name> from the module <module>, so:

>     from path import path

> will import the name 'path' (a class) from the module 'path'.

Thanks.  But I don't quite understand.  If I use sys:

import sys

args = sys.argv[1:]

I don't need to use 'from'.  What is different with using path?

>> Perhaps I just need to know where path.py is as I can't find it in my
>> filesystem.

>Try:

>import path
>print path.__file__

c:\Python27\lib\site-packages\path.py-7.0-py2.7.egg\path.pyc

Where would I typically put that path in an IDE?

Thanks for your help.

David

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Where is path.py? David Aldrich <David.Aldrich@EMEA.NEC.COM> - 2014-11-27 15:30 +0000

csiph-web