Hello ! I apoligize for the format of my last message, I didn't realize that putting my text in bold format will show those asterisks. By the way you're Alan, for the pythom module I first had to read my arguments and passed them to the os.system(), it worked. Now when I execute this command, in my normal DOS Windows, I must change to another path before I run the .exe, I don't know how to tell this to my python module. This is my code:
from dbf import * from osgeo import ogr import os import sys def call(): os.chdir('C:\Python26') arg1 = "R1G-GEODESIA2.shp" arg2 = "LAYER = 'R1G-GEODESIA'" arg4 = "tapalpa_05_plani_point.shp" os.system('"C:/Archivos de programa/FWTools2.4.7/setfw"') os.system('"C:/Archivos de programa/FWTools2.4.7/bin/ogr2ogr.exe"'+" " +"arg1" +" "+ "-where" +" "+ "arg3" +" " +"arg4") call() If I run it, it shows me the following error: Python 2.6.6 (r266:84297, Aug 24 2010, 18:46:32) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import fw Ingresa el nombre para el nuevo mapa R1G-GEODESIA2.shp Ingresa la condicion LAYER = 'R1G-GEODESIA' Ingresa el nombre del mapa original tapalpa_05_plani_point.shp FAILURE: Unable to open datasource `arg3' with the following drivers. -> ESRI Shapefile -> MapInfo File -> UK .NTF -> SDTS -> TIGER -> S57 -> DGN -> VRT -> REC -> Memory -> BNA -> CSV -> NAS -> GML -> GPX -> KML -> GeoJSON -> Interlis 1 -> Interlis 2 -> GMT -> SQLite -> ODBC -> PGeo -> OGDI -> PostgreSQL -> MySQL -> XPlane -> AVCBin -> AVCE00 -> DXF -> Geoconcept -> GeoRSS -> GPSTrackMaker -> VFK >>>
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor