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


Groups > comp.lang.python > #78955

Re: python on Linux

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Peter Pearson <pkpearson@nowhere.invalid>
Newsgroups comp.lang.python
Subject Re: python on Linux
Date 10 Oct 2014 15:44:24 GMT
Lines 17
Message-ID <c9qd6oFqn3eU1@mid.individual.net> (permalink)
References <mailman.14733.1412914913.18130.python-list@python.org> <54377d29$0$2833$e4fe514c@news.xs4all.nl>
X-Trace individual.net zJvPsnz0EeMRkHZ6IoTwugA2p7w/wYJb5ua4ssyAsSCR+zhBJo
Cancel-Lock sha1:kLoW5B6i0kiiK5T5Yi1VAJq44C4=
User-Agent slrn/pre1.0.0-18 (Linux)
Xref csiph.com comp.lang.python:78955

Show key headers only | View raw


On Fri, 10 Oct 2014 08:31:04 +0200, Irmen de Jong wrote:
> On 10-10-2014 6:21, Igor Korot wrote:

>> When I am on Windows, I can write something like this:
>> 
>> sys.path.append('C:\Users\Igor\Documents\MyLib')
>
> While this might work on your system, it may not work on others.
>
> - you need to escape the backslashes (or just use forward slashes,
> they work on windows too)

And remember that os.path.join() will join path fragments with
the right kind of slashes for your operating system.

-- 
To email me, substitute nowhere->runbox, invalid->com.

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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