# Filepath Multiple Backslashes in String

**URL:** <https://forum.inductiveautomation.com/t/filepath-multiple-backslashes-in-string/25951>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 19, 2019, 4:55pm UTC](https://forum.inductiveautomation.com/t/filepath-multiple-backslashes-in-string/25951 "2019-06-19T16:55:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kwingert](https://avatars.discourse-cdn.com/v4/letter/k/ecd19e/32.png) [@kwingert](https://forum.inductiveautomation.com/u/kwingert)\
**Post date:** [June 19, 2019, 4:55pm UTC](https://forum.inductiveautomation.com/t/filepath-multiple-backslashes-in-string/25951/1 "2019-06-19T16:55:50Z")

</div>

```auto
import csv
filename = "C:\Users\image\Desktop\test.csv"
print(filename)
with open(filename) as csvfile:
	readCSV = csv.reader(csvfile, delimiter=',')

```

print returns “C:\Users\image\Desktop\test.csv”

but I get an error

```auto
12:50:52.160 [AWT-EventQueue-0] ERROR com.inductiveautomation.factorypmi.application.binding.action.ActionAdapter - <HTML>Error executing script for event:&nbsp;<code><b>actionPerformed</b></code><BR>on component:&nbsp;<code><b>Button 1</b></code>.
com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last):
  File "<event:actionPerformed>", line 43, in <module>
IOError: (2, 'No such file or directory', 'C:\\Users\\image\\Desktop\\test.csv')

```

The file does exist and is at that location.Not sure why the error returns with double back slashes but the print does not. I’ve tried putting an r before the string and using double backslashes within the string.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 19, 2019, 5:01pm UTC](https://forum.inductiveautomation.com/t/filepath-multiple-backslashes-in-string/25951/2 "2019-06-19T17:01:04Z")

</div>

Simplest thing to try: just use forward slashes. Python’s usually pretty forgiving about allowing them.
