From 52b0636c82b06a07daa5731550f86b0d7ebc7608 Mon Sep 17 00:00:00 2001 From: Nicola N Date: Mon, 7 Dec 2020 09:33:57 +1100 Subject: [PATCH] fix: Running scripts in Windows (#94) Trying to run a script when inside an Anaconda/Miniconda virtual environment on windows10, the script would refuse to run. This tweak made it behave. I'm not sure if there are other consequences to this inclusion though: it might break under some other virtual environment, or non-virtual environment. --- mp/mpfshell.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mp/mpfshell.py b/mp/mpfshell.py index 2e39c5b..44334db 100644 --- a/mp/mpfshell.py +++ b/mp/mpfshell.py @@ -812,6 +812,9 @@ def main(): elif args.script is not None: + if platform.system() == "Windows": + mpfs.use_rawinput = True + f = open(args.script, "r") script = ""