# FileChooser filename format

**URL:** https://discourse.paraview.org/t/filechooser-filename-format/10855
**Category:** ParaView Support
**Tags:** python
**Created:** [November 24, 2022, 1:05pm UTC](https://discourse.paraview.org/t/filechooser-filename-format/10855 "2022-11-24T13:05:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![hamid\_badi](https://discourse.paraview.org/user_avatar/discourse.paraview.org/hamid_badi/32/6775_2.png) [@hamid\_badi](https://discourse.paraview.org/u/hamid_badi)
#### Post date: [November 24, 2022, 1:05pm UTC](https://discourse.paraview.org/t/filechooser-filename-format/10855/1 "2022-11-24T13:05:46Z")

</div>

Hello,

I’m writing a python Paraview reader plugin, i have the following method in my reader class

```auto
@smhint.filechooser(extensions="vtx", file_description="My files")
    def SetFileName(self, name):
         self._filename = name
         print("Loading file " + name)
         loadVtx(name)

```

When it comes to load the file in my specficic process (`loadX`) i realized the name is simple backslashed string, which is tricky to transform as a double backslashed string.  
For example i get the string `d:\tmp\export.vtk` and not `d:\\tmp\\export.vtk`.  
I tried using `re` package and `string.replace` but without success. All filestream operations need a double bakslashed file name.

Any idea ? Thanks for helping.
