Re: Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
r reasons, like different versions of dependencies. > > Tox will manage the virtualenvs for you, it makes multi-version > testing very simple. > Excellent, Ned and Akira, I will look into it! Cheers, Joep -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
usr/local/bin-script? I can work with this (have not tried though), but there must be a more elegant solution than symlinking my way forward... Cheers! Joep On Thu, 17 Jul 2014 16:05:27 + (UTC) Javier wrote: > Are you using arch linux. > > > I deal with multiple

Multiple python versions, one dev environment???

2014-07-17 Thread Joep van Delft
es from my development directory into user specified site-packages directories. Problem 3. still is valid. 5. Should venv and friends/foes com into play? If so: How? Appreciate any light shed on these issues. Thanks! Joep -- https://mail.python.org/mailman/listinfo/python-list

strace of python shows nonsense

2013-01-14 Thread Joep van Delft
g there, and why? And, more importantly, how can this be corrected? Probably irrelevant, but Python2 version 2.7.3, Archlinux (current as of previous weekend). Thanks, Joep -- http://mail.python.org/mailman/listinfo/python-list

Re: replace string in a file

2008-03-17 Thread joep
On Mar 16, 10:35 pm, sturlamolden <[EMAIL PROTECTED]> wrote: > On 15 Mar, 21:54, Unknown <[EMAIL PROTECTED]> wrote: > > > I was expecting to replace the old value (serial) with the new one > > (todayVal). Instead, this code *adds* another line below the one found... > > > How can I just replace it?

Re: Spaces in path name

2008-03-16 Thread joep
One more try (using popen instead of call is not necessary for these cases, but I want to see the behavior of popen): shell=True and executable and at least one argument with spaces does not work: -

Re: Spaces in path name

2008-03-16 Thread joep
Tim Golden wrote: > Tim Golden wrote: > > What I haven't investigated yet is whether the additional flags > > your example is passing (shell=True etc.) cause the main Popen > > mechanism to take a different path. > > Sure enough, passing shell=True -- which is probably quite > a rare requirement

Re: Spaces in path name

2008-03-16 Thread joep
Tim Golden wrote: > subprocess.call ([ > >r"C:\Program Files\Adobe\Acrobat 5.0\Reader\acro reader.exe", > > r"C:\Program Files\Adobe\Acr > obat 5.0\Reader\plug_ins.donotuse\Annotations\Stamps\abc def.pdf" > > ]) > > Can you confirm that something equivalent *doesn't* work on your > setup? Or

Re: replace string in a file

2008-03-15 Thread joep
you can also use standard module fileinput.input with ''inplace'' option which backs up original file automatically. from python help for fileinput: Optional in-place filtering: if the keyword argument inplace=1 is passed to input() or to the FileInput constructor, the file is moved to a backup f

Re: Spaces in path name

2008-03-15 Thread joep
On Mar 15, 5:42 pm, joep <[EMAIL PROTECTED]> wrote: > >http://timgolden.me.uk/python/win32_how_do_i/run-a-command-with-a-spa... > > Note: this works for subprocess.call but for subprocess.Popen this > does not work if there are two arguments in the command line with >

Re: Spaces in path name

2008-03-15 Thread joep
> > http://timgolden.me.uk/python/win32_how_do_i/run-a-command-with-a-spa... Note: this works for subprocess.call but for subprocess.Popen this does not work if there are two arguments in the command line with spaces. Especially, even after trying out many different versions, I never managed to ge

Re: Spaces in path name

2008-03-14 Thread joep
On Mar 14, 8:15 pm, "David S" <[EMAIL PROTECTED]> wrote: > By mapping network drives in windows I can get past these issues with path > names. > > Thanks, > David > > "Tim Golden" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > David S wrote: > >> Gets me further but still see