From 75b49cd6c30e2213d60c3ee79cc096ad6e77fa1b Mon Sep 17 00:00:00 2001
From: Stefan Liebl <S.Liebl@gmx.de>
Date: Thu, 28 May 2020 09:29:16 +0200
Subject: [PATCH] virtalenv for pytest

---
 vimfiles.stefan/plugin/toptica.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vimfiles.stefan/plugin/toptica.vim b/vimfiles.stefan/plugin/toptica.vim
index 8767497..564c214 100644
--- a/vimfiles.stefan/plugin/toptica.vim
+++ b/vimfiles.stefan/plugin/toptica.vim
@@ -448,7 +448,7 @@ function s:DlcProRegtest(ip, powerswitch_ip, powerplug, laser_count, laser_type,
     " Execute pytest
     let test_dir = s:ProjectSrcDir."/test"
     let test_cmd =
-                \"python3 -u -m pytest ".
+                \test_dir."/python-env/bin/python -u -m pytest ".
                 \"--showlocals --tb=long --verbose --cache-clear ".
                 \"--junit-xml=regtest.".a:laser_type.".xml ".
                 \"--laser_count=".a:laser_count." ".