Quantcast
Channel: Question and Answer » arcpy
Viewing all articles
Browse latest Browse all 767

Replacing double quotes in filename using

$
0
0

I am working with data in an SDE, when I create a new feature class within the SDE I get a file name which contains my user name in double quotes. I do not have administrative permissions to the SDE and therefore cannot get the file name to write without having my user name in double quotes. I was wondering if there is a way to replace the double quotation marks in the file name so I can write an output to a shapefile. When I try to output to a shapefile I get an error stating ‘invalid characters’. I’ve tried .replace(‘”‘,”) but that doesn’t seem to work. The only replace function I can get to work is replacing full stops in the file name by stating .replace(“.”,”") using double quotes. Is there a way I can replace these troublesome double quotes. Thank you for for any light you can shed on this subject.


Viewing all articles
Browse latest Browse all 767

Trending Articles