diff --git a/src/codesnipper.egg-info/PKG-INFO b/src/codesnipper.egg-info/PKG-INFO index ddbe216093d449b3cc7c9060832d1fa058e3c49d..0112cf2014d1fb8ba3ef251aad23ca0a4be56dbb 100644 --- a/src/codesnipper.egg-info/PKG-INFO +++ b/src/codesnipper.egg-info/PKG-INFO @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: codesnipper -Version: 0.1.18.5 +Version: 0.1.18.6 Summary: A lightweight framework for censoring student solutions files and extracting code + output Home-page: https://lab.compute.dtu.dk/tuhe/snipper Author: Tue Herlau diff --git a/src/snipper/fix_i.py b/src/snipper/fix_i.py index 5ddbba55ad11579134beefd2f5e38fdb400387bc..ed413f5b0bce4b210ced62603cafebf9d879ef98 100644 --- a/src/snipper/fix_i.py +++ b/src/snipper/fix_i.py @@ -2,6 +2,8 @@ import functools import textwrap from snipper.legacy import block_process from snipper.block_parsing import full_strip +import sys + import os if os.name == 'nt': import wexpect as we @@ -22,7 +24,7 @@ def rsession(analyzer, lines, extra): print(k['output']) import time - an = we.spawn("python", encoding="utf-8", timeout=20) + an = we.spawn(sys.executable, encoding="utf-8", timeout=20) try: an.setwinsize(400, 400) # set window size to avoid truncated output or input. except AttributeError as e: @@ -133,7 +135,7 @@ def run_i(lines, file, output): # an.setecho(True) # TH January 2023: Seems to fix an issue on linux with truncated lines. May cause problems on windows? if extra['python'] is None: - an = we.spawn("python", encoding="utf-8", timeout=20) + an = we.spawn(sys.executable, encoding="utf-8", timeout=20) try: an.setwinsize(400, 400) # set window size to avoid truncated output or input. except AttributeError as e: diff --git a/src/snipper/version.py b/src/snipper/version.py index 569cd72636b4a35450a4c6e05c70b2aca6313b95..3c2686537c4ffb5e23ac21bbc1b96893b72c3ded 100644 --- a/src/snipper/version.py +++ b/src/snipper/version.py @@ -1 +1 @@ -__version__ = "0.1.18.5" +__version__ = "0.1.18.6"