Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81636
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <David.Aldrich@EMEA.NEC.COM> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.034 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'args': 0.07; 'sys': 0.07; '>try:': 0.16; 'class)': 0.16; 'received:85.115': 0.16; 'module': 0.19; 'thanks.': 0.20; 'help.': 0.21; 'import': 0.22; 'to:name :python-list@python.org': 0.22; 'header:Received:8': 0.24; 'received:169.254': 0.32; 'quite': 0.32; "can't": 0.35; 'but': 0.35; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'received:169': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'name': 0.63; 'different': 0.65; 'subject:Where': 0.84 |
| From | David Aldrich <David.Aldrich@EMEA.NEC.COM> |
| To | "python-list@python.org" <python-list@python.org> |
| Subject | RE: Where is path.py? |
| Thread-Topic | Where is path.py? |
| Thread-Index | AdAKStDQ2YO//cxDSMOBhBhJws/BbgAC7/rg |
| Date | Thu, 27 Nov 2014 15:30:11 +0000 |
| Accept-Language | en-GB, en-US |
| Content-Language | en-US |
| X-MS-Has-Attach | |
| X-MS-TNEF-Correlator | |
| x-originating-ip | [172.29.68.112] |
| Content-Type | text/plain; charset="us-ascii" |
| Content-Transfer-Encoding | quoted-printable |
| MIME-Version | 1.0 |
| X-Scanned-By | MailControl 37812.332 (www.mailcontrol.com) on 10.65.0.122 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.16370.1417104234.18130.python-list@python.org> (permalink) |
| Lines | 33 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1417104234 news.xs4all.nl 2853 [2001:888:2000:d::a6]:46514 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 2959 |
| X-Received-Body-CRC | 4098132247 |
| Xref | csiph.com comp.lang.python:81636 |
Show key headers only | 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
RE: Where is path.py? David Aldrich <David.Aldrich@EMEA.NEC.COM> - 2014-11-27 15:30 +0000
csiph-web