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


Groups > comp.lang.python > #78922 > unrolled thread

Re: python on Linux

Started byDan Stromberg <drsalists@gmail.com>
First post2014-10-09 21:38 -0700
Last post2014-10-09 21:38 -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.


Contents

  Re: python on Linux Dan Stromberg <drsalists@gmail.com> - 2014-10-09 21:38 -0700

#78922 — Re: python on Linux

FromDan Stromberg <drsalists@gmail.com>
Date2014-10-09 21:38 -0700
SubjectRe: python on Linux
Message-ID<mailman.14734.1412915945.18130.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web