diff --git a/HySoP/hysop/tools/io_utils.py b/HySoP/hysop/tools/io_utils.py
index 291e2dddc19a9f77a5f54ff8c6cb6857ae1b6682..80bfa83f3ca5cb23f7b2e085f0a03f613cd61c38 100644
--- a/HySoP/hysop/tools/io_utils.py
+++ b/HySoP/hysop/tools/io_utils.py
@@ -52,7 +52,7 @@ class io(object):
         else:
             # -- python --
             a = a[-1]
-            if a[-1] is None:
+            if a[-1] is None or len(findall('py.test', a[1])) > 0:
                 # interactive python
                 return './interactive/p' + str(mpi.main_size)