Skip to content

Commit

Permalink
fix: Running scripts in Windows (#94)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nicola N committed Dec 6, 2020
1 parent 429469f commit 52b0636
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mp/mpfshell.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""

Expand Down

0 comments on commit 52b0636

Please sign in to comment.