Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5244
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | robert <robert@redo2oo.ch> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] probleme mit python 3 popen |
| Date | Sun, 23 Sep 2018 18:20:32 +0200 |
| Lines | 37 |
| 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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de /UtlC/s1a9T4UizN7U90Mwih1Ye67fwqAIyMcKzZk6cg== |
| Return-Path | <robert@redo2oo.ch> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 |
| In-Reply-To | <13c9f810-37b6-2bb5-0fa0-f7eb9ea0c897@chrisarndt.de> |
| Content-Language | en-US |
| X-Mailman-Approved-At | Sun, 23 Sep 2018 12:27:49 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.29 |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.29 |
| Precedence | list |
| List-Id | Die Deutsche Python Mailingliste <python-de.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-de/> |
| List-Post | <mailto:python-de@python.org> |
| List-Help | <mailto:python-de-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <97d7192f-fac9-8438-1d2e-3de832c5b49b@redo2oo.ch> |
| X-Mailman-Original-References | <33920c93-417b-ef60-4f54-cdfb878ed21c@redcor.ch> <13c9f810-37b6-2bb5-0fa0-f7eb9ea0c897@chrisarndt.de> |
| Xref | csiph.com de.comp.lang.python:5244 |
Show key headers only | 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
--
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