Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.040 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; 'skip:$ 30': 0.07; 'to:addr:comp.lang.python': 0.09; 'cc:addr:python-list': 0.10; 'file.': 0.20; 'import': 0.21; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'probably': 0.29; 'skip:s 30': 0.33; 'received:google.com': 0.34; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'received:209': 0.37; 'subject:: ': 0.38; 'subject:-': 0.40; 'from:no real name:2**0': 0.60; 'received:209.85.220.184': 0.91 Newsgroups: comp.lang.python Date: Thu, 11 Oct 2012 09:24:10 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.62.55.217; posting-account=ung4FAoAAAC46zhHJ0Nsnuox7M5gDvs_ References: <20121011081607.46014e3d@dilbert> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 81.62.55.217 MIME-Version: 1.0 Subject: Re: for-loop on cmd-line From: wxjmfauth@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349972653 news.xs4all.nl 6981 [2001:888:2000:d::a6]:60905 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31125 Le jeudi 11 octobre 2012 15:16:33 UTC+2, Ramchandra Apte a =E9crit=A0: PS C:\> $cmd=3D"import sys;" PS C:\> $cmd+=3D"print('\n'.join(sys.path))" PS C:\> $cmd import sys;print('\n'.join(sys.path)) PS C:\> c:\python32\python -c $cmd C:\Windows\system32\python32.zip c:\python32\DLLs c:\python32\lib c:\python32 c:\python32\lib\site-packages PS C:\> Can probably be in a .cmd file. jmf