Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeder.news-service.com!news2.euro.net!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.004 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'function,': 0.07; 'python': 0.08; '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:windows': 0.09; '21:52,': 0.16; 'open()': 0.16; 'paths.': 0.16; 'subject:folder': 0.16; "doesn't": 0.22; 'header:In-Reply- To:1': 0.22; 'windows': 0.26; 'tried': 0.26; 'function': 0.27; 'script.': 0.29; 'wraps': 0.30; 'shared': 0.31; 'hi,': 0.32; 'anyone': 0.32; 'to:addr:python-list': 0.33; 'header:User- Agent:1': 0.34; 'header:X-Complaints-To:1': 0.35; 'using': 0.37; 'but': 0.37; 'received:org': 0.38; 'web,': 0.38; 'subject:: ': 0.39; 'header:Mime-Version:1': 0.39; 'to:addr:python.org': 0.39; 'share': 0.65; 'mount': 0.84; 'schrieb': 0.84; 'open,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Christian Heimes Subject: Re: Directions on accessing shared folder in windows network Date: Wed, 10 Aug 2011 22:43:05 +0200 References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: g228206097.adsl.alicedsl.de User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2.102ipre2 Thunderbird/3.1.11 In-Reply-To: X-Enigmail-Version: 1.1.2 OpenPGP: id=AD16AB1B; url=http://cheimes.de/heimes.asc 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: 13 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1313008998 news.xs4all.nl 23900 [2001:888:2000:d::a6]:34957 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:11149 Am 10.08.2011 21:52, schrieb Ameet Nanda: > Hi, > > Can anyone point me to a way to access windows shared folders from the > network using a python script. I tried accessing using open, which is > mentioned to work perfectly on the web, but it gives me following errors The open() function wraps the fopen() function, which doesn't support UNC, just local paths. You have to mount the network share first (assign a drive letter). Christian