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)
-------------- nächster Teil --------------
Ein Dateianhang mit Bin?rdaten wurde abgetrennt...
Dateiname   : nicht verf?gbar
Dateityp    : application/pgp-signature
Dateigr??e  : 189 bytes
Beschreibung: nicht verf?gbar
URL         : http://intevation.de/pipermail/thuban-devel/attachments/20061119/884f8953/attachment.bin


More information about the Thuban-devel mailing list