os.path.exists() strangeness with pytest.py (Re: swig expert)

Bernhard Reiter bernhard at intevation.de
Sun Nov 19 14:04:19 CET 2006


So Didrik,
any progress on your swig experiments? :)
Bernhard

On Saturday 14 October 2006 23:15, Bernhard Reiter wrote:
> On Friday 06 October 2006 18:06, Didrik Pinte wrote:
> > [2] The second problem is really strange :
> >
> > When calling the original libraries/pyshapelib/pytest.py, everything
> > works fine BUT if you do the following, you get an error :
> >
> > Original code :
> > --------------------------------------------------------------------
> > make_shapefile("testfile")
> > read_shapefile("testfile")
> > --------------------------------------------------------------------
> >
> > Modified code causing the bug :
> > --------------------------------------------------------------------
> > make_shapefile("testfile")
> > import os
> > os.path.exists("testfile.shp")
> > read_shapefile("testfile")
> > --------------------------------------------------------------------

-- 
Managing Director - Owner, www.intevation.net       (Free Software Company)
Germany Coordinator, fsfeurope.org       (Non-Profit Org for Free Software)
www.kolab-konsortium.com   (Email/Groupware Solution, Professional Service)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.intevation.de/pipermail/thuban-devel/attachments/20061119/884f8953/attachment.bin


More information about the Thuban-devel mailing list

This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)