Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #78922 > unrolled thread
| Started by | Dan Stromberg <drsalists@gmail.com> |
|---|---|
| First post | 2014-10-09 21:38 -0700 |
| Last post | 2014-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.
Re: python on Linux Dan Stromberg <drsalists@gmail.com> - 2014-10-09 21:38 -0700
| From | Dan Stromberg <drsalists@gmail.com> |
|---|---|
| Date | 2014-10-09 21:38 -0700 |
| Subject | Re: 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
Back to top | Article view | comp.lang.python
csiph-web