# Loading 4D volume as Sequence using python script

**URL:** <https://discourse.slicer.org/t/loading-4d-volume-as-sequence-using-python-script/13076>\
**Category:** Development\
**Created:** [August 18, 2020, 4:13pm UTC](https://discourse.slicer.org/t/loading-4d-volume-as-sequence-using-python-script/13076 "2020-08-18T16:13:47Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [August 18, 2020, 6:13pm UTC](https://discourse.slicer.org/t/loading-4d-volume-as-sequence-using-python-script/13076/6 "2020-08-18T18:13:21Z")

</div>

Make sure you specify path correctly (using forward-slash, double-backslash, or raw string):

> [@Subprocess.call does not work!](https://discourse.slicer.org/t/subprocess-call-does-not-work/2837/14):
>
> 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 = …

If you still have issues, upgrade to latest Slicer Preview Release.

---

_[View the full topic](https://discourse.slicer.org/t/loading-4d-volume-as-sequence-using-python-script/13076)._
