# Subprocess.call does not work!

**URL:** <https://discourse.slicer.org/t/subprocess-call-does-not-work/2837>\
**Category:** Support\
**Created:** [May 17, 2018, 10:00am UTC](https://discourse.slicer.org/t/subprocess-call-does-not-work/2837 "2018-05-17T10:00:16Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [July 11, 2019, 2:25pm UTC](https://discourse.slicer.org/t/subprocess-call-does-not-work/2837/14 "2019-07-11T14:25:18Z")

</div>

FYI, since backslash (`\`) is an escape character in Python, you cannot simply use it in a string literal in Python.

The easiest is to indicate that you specify a raw string by prepending an `r` character before the string. This is correct:

```
somePath = r"F:\someFolder\python.exe"

```

If you need to use a regular string then backslash can be entered by typing double-backslash. This is correct:

```
somePath = "F:\\someFolder\\python.exe"

```

You may also use Unix-type separators. This is correct:

```
somePath = "F:/someFolder/python.exe"
```

---

_[View the full topic](https://discourse.slicer.org/t/subprocess-call-does-not-work/2837)._
