Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78921
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!nntp.club.cc.cmu.edu!micro-heart-of-gold.mit.edu!bloom-beacon.mit.edu!bloom-beacon.mit.edu!panix!gordon |
|---|---|
| From | John Gordon <gordon@panix.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: python on Linux |
| Date | Fri, 10 Oct 2014 04:37:52 +0000 (UTC) |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Lines | 14 |
| Message-ID | <m17nr0$bej$1@reader1.panix.com> (permalink) |
| References | <mailman.14733.1412914913.18130.python-list@python.org> |
| NNTP-Posting-Host | panix3.panix.com |
| X-Trace | reader1.panix.com 1412915872 11731 166.84.1.3 (10 Oct 2014 04:37:52 GMT) |
| X-Complaints-To | abuse@panix.com |
| NNTP-Posting-Date | Fri, 10 Oct 2014 04:37:52 +0000 (UTC) |
| User-Agent | nn/6.7.3 |
| Xref | csiph.com comp.lang.python:78921 |
Show key headers only | View raw
In <mailman.14733.1412914913.18130.python-list@python.org> Igor Korot <ikorot01@gmail.com> writes:
> sys.path.append('~/MyLib')
> I.e., will '~' sign be expanded correctly?
Not as written.
Use os.path.expanduser() to get user's home directories.
--
John Gordon Imagine what it must be like for a real medical doctor to
gordon@panix.com watch 'House', or a real serial killer to watch 'Dexter'.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
python on Linux Igor Korot <ikorot01@gmail.com> - 2014-10-09 21:21 -0700
Re: python on Linux John Gordon <gordon@panix.com> - 2014-10-10 04:37 +0000
Re: python on Linux Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-10-10 08:31 +0200
Re: python on Linux Chris Angelico <rosuav@gmail.com> - 2014-10-10 17:58 +1100
Re: python on Linux Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2014-10-10 09:48 +0200
Re: python on Linux Peter Pearson <pkpearson@nowhere.invalid> - 2014-10-10 15:44 +0000
Re: python on Linux Chris Angelico <rosuav@gmail.com> - 2014-10-11 02:53 +1100
Re: python on Linux Ian Kelly <ian.g.kelly@gmail.com> - 2014-10-10 09:52 -0600
csiph-web