Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5244
| From | robert <robert@redo2oo.ch> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] probleme mit python 3 popen |
| Date | 2018-09-23 18:20 +0200 |
| Message-ID | <mailman.81.1537720070.2746.python-de@python.org> (permalink) |
| References | <33920c93-417b-ef60-4f54-cdfb878ed21c@redcor.ch> <13c9f810-37b6-2bb5-0fa0-f7eb9ea0c897@chrisarndt.de> <97d7192f-fac9-8438-1d2e-3de832c5b49b@redo2oo.ch> |
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
--
Robert Rottermann CEO
031 333 10 20
robert@redo2oo.ch <mailto:robert@redo2oo.ch>
Sickingerstrasse 3, 3014 Bern
<http://maps.apple.com/?q=Sickingerstrasse%203,3014%20Bern>
https://Redo2oo.ch <https://redo2oo.ch>
*Ihr Partner wenn es um ERP Lösungen geht.*
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] probleme mit python 3 popen robert <robert@redo2oo.ch> - 2018-09-23 18:20 +0200
csiph-web