[GRASS-user] use pipe character in a script

Uwe Fischer gisfisch at t-online.de
Wed Mar 23 00:51:34 PDT 2022


Hello,

 

I try to fill a certain attribute column with a variable plus a Pipe
character (|) in a python script:

 

value_to_fillin = myvariable + '|'

grass.run_command('v.db.update', map='mymap', column='mycol',
value=value_to_fillin)

 

 

But it does not work. When I try to place there 'xx' instead of the pipe, it
works.

 

Does the pipe have special meaning in Python or GRASS and therefore is not
available as normal character? Is there a workaround (because the pipe must
be there to meet my data transfer requirements)

 

Regards, Uwe

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20220323/4c30c302/attachment.html>


More information about the grass-user mailing list