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


Groups > de.comp.lang.python > #5245

Re: [Python-de] probleme mit python 3 popen

From robert <robert@redcor.ch>
Newsgroups de.comp.lang.python
Subject Re: [Python-de] probleme mit python 3 popen
Date 2018-09-23 19:38 +0200
Message-ID <mailman.82.1537724334.2746.python-de@python.org> (permalink)
References <33920c93-417b-ef60-4f54-cdfb878ed21c@redcor.ch> <13c9f810-37b6-2bb5-0fa0-f7eb9ea0c897@chrisarndt.de> <ada55e18-9138-0f6d-9b07-55c4a24ea5d8@redcor.ch>

Show all headers | View raw


danke beide Methoden haben geklappt

robert


On 23.09.2018 16:21, Christopher Arndt wrote:
> Du müsstest wahrscheinlich einfach das hier:
>
> Am 23.09.18 um 16:08 schrieb robert:
>> virtualenvwrapper =p.communicate()[0].strip()
> um ein .decode(sys.getfilesystemencoding()) am Ende ergänzen.
>
> Ich würde aber statt dem ersten Popen einfach shutil.which() verwenden
> (ab Python 3.3 verfügbar):
>
>>>> import shutil
>>>> shutil.which('virtualenvwrapper.sh')
> '/usr/bin/virtualenvwrapper.sh'
>
>
> Chris
> _______________________________________________
> python-de maillist  -python-de@python.org
> https://mail.python.org/mailman/listinfo/python-de

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] probleme mit python 3 popen robert <robert@redcor.ch> - 2018-09-23 19:38 +0200

csiph-web