Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78922
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone02.am1.xlned.com!bcyclone02.am1.xlned.com!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'linux,': 0.07; 'try:': 0.09; 'windows,': 0.09; 'cc:addr:python-list': 0.11; 'i.e.,': 0.16; 'igor': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'expanded': 0.24; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'something': 0.35; 'received:google.com': 0.35; 'url:listinfo': 0.36; 'hi,': 0.36; 'url:org': 0.36; 'thank': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'you.': 0.62; 'to:addr:gmail.com': 0.65 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PKqqbMyNZ2FBIVfL+dZ8cOtD4+oX3+DNm3nJeWmTzM4=; b=hB+TLFB5z8yK4ybZnBpCRp03M4/Nh/C0wiWNWABIlTI35ImxVCrdVr0OVDAgvEYN3Y fET3dVtAIoLGJF/DqSu6H9n+iP1PNDroJwou+tEcGIv+MhJH1k8dy7efgEDfZwshq4YL Wq4RXQW/hWRgcaBKxNcn1dRx4GU+5YKcjYBuA5SGxA7j6SqjIP3Ubt3zsg2/H0Hiz4/F ZVFnc1OaEbJxt90l9LorPpmDAC0V+YdlPYJATkQc9O7TH79uHDqkAXLrNmqqi0y8HaHW Mm5zS4Km4NEluMvQITDFNv+5b3UcSYhvv9Rd4MexwbsEUWZRVNAu9HEfAhqkpr6L2VT5 ujlw== |
| MIME-Version | 1.0 |
| X-Received | by 10.152.6.202 with SMTP id d10mr1787943laa.69.1412915935980; Thu, 09 Oct 2014 21:38:55 -0700 (PDT) |
| In-Reply-To | <CA+FnnTzGH2WDkH1h2EHtEu8C_ib6EHo=7xKvEeyhTDNuiogksw@mail.gmail.com> |
| References | <CA+FnnTzGH2WDkH1h2EHtEu8C_ib6EHo=7xKvEeyhTDNuiogksw@mail.gmail.com> |
| Date | Thu, 9 Oct 2014 21:38:55 -0700 |
| Subject | Re: python on Linux |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | Igor Korot <ikorot01@gmail.com> |
| Content-Type | text/plain; charset=UTF-8 |
| Cc | "python-list@python.org" <python-list@python.org> |
| 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.14734.1412915945.18130.python-list@python.org> (permalink) |
| Lines | 21 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1412915945 news.xs4all.nl 2850 [2001:888:2000:d::a6]:48097 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3435 |
| X-Received-Body-CRC | 11092616 |
| Xref | csiph.com comp.lang.python:78922 |
Show key headers only | View raw
Try:
sys.path.append(os.path.expanduser('~/MyLib'))
On Thu, Oct 9, 2014 at 9:21 PM, Igor Korot <ikorot01@gmail.com> wrote:
> Hi, ALL,
> When I am on Windows, I can write something like this:
>
> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> Now, when I'm on Linux, can I do this:
>
> sys.path.append('~/MyLib')
>
> ?
>
> I.e., will '~' sign be expanded correctly?
>
> Thank you.
> --
> https://mail.python.org/mailman/listinfo/python-list
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python on Linux Dan Stromberg <drsalists@gmail.com> - 2014-10-09 21:38 -0700
csiph-web