newbie - variable "buried in quotes"

Bernd Nawothnig Bernd.Nawothnig at t-online.de
Mon May 16 12:47:25 EDT 2005


On 2005-05-16, plsullivan wrote:
> I've got a variable deep inside some quotes needed by the application I
> am using. I can't figure out how to make this work. (Also, is there a
> line continuation character?)

> luser = win32api.GetUserName()

> gp.FeatureclassToCoverage_conversion("'Database
> Connections\\%s at GIS_srv-earth.sde\\GIS.GIS.Cadastral\\GIS.GIS.Parcels'
> POLYGON", prcl83, "", "DOUBLE") % luser

You poosibly meant something like that:

#v+
gp.FeatureclassToCoverage_conversion("'Database"
  "Connections\\%s at GIS_srv-earth.sde\\GIS.GIS.Cadastral\\GIS.GIS.Parcels'"
  "POLYGON" % luser, prcl83, "", "DOUBLE")
#v-



Bernd

-- 
Those who desire to give up freedom in order to gain security,
will not have, nor do they deserve, either one. [T. Jefferson]



More information about the Python-list mailing list