Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'terry': 0.07; 'python': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'subject:PIL': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'starts': 0.15; '3.2,': 0.16; 'idle,': 0.16; 'rebert': 0.16; 'reedy': 0.16; 'shell:': 0.16; 'subject:Question': 0.16; 'command': 0.19; 'jan': 0.22; 'header:In-Reply-To:1': 0.22; 'file,': 0.22; 'directory.': 0.23; 'runs': 0.24; 'cases': 0.25; 'windows': 0.26; 'chris': 0.27; 'changes': 0.29; 'least': 0.30; 'named': 0.30; 'determine': 0.31; 'import': 0.32; 'to:addr:python-list': 0.32; 'answers': 0.33; 'header:X-Complaints-To:1': 0.34; 'file': 0.35; 'header:User- Agent:1': 0.35; 'running': 0.36; 'folder': 0.36; 'think': 0.36; 'two': 0.37; 'run': 0.37; 'skip:" 20': 0.38; 'current': 0.38; 'received:org': 0.38; 'to:addr:python.org': 0.39; 'header:Mime- Version:1': 0.39; 'would': 0.40; 'header:Received:5': 0.40; '9:00': 0.84; 'window,': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: PIL Question Date: Sun, 01 May 2011 22:50:52 -0400 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: rain.gmane.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 82.94.164.166 X-Trace: 1304304663 news.xs4all.nl 81473 [::ffff:82.94.164.166]:35079 X-Complaints-To: abuse@xs4all.nl Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.stben.net!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:4435 On 5/1/2011 9:00 PM, Chris Rebert wrote: > I would think to a file named "screen_capture.jpg" in the current > working directory. What that is for IDLE, I don't know. At least on windows with 3.2, if one just starts up the shell, it is in the Pythonxy directory. If one runs a file from an edit window, it changes to the directory of the file, so it operates much as if one had run with the command python -i file.py in the directory of file.py. > You can > determine what folder that is by running this in your Python shell: > > from os import getcwd; print(getcwd()) Yes, this gives two different answers in the two cases noted above. -- Terry Jan Reedy