File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
thonnycontrib/black_formatter Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -157,4 +157,9 @@ cython_debug/
157157# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
158158# and can be added to the global gitignore or merged into this file. For a more nuclear
159159# option (not recommended) you can uncomment the following to ignore the entire idea folder.
160- # .idea/
160+ # .idea/
161+
162+ # Pyenv version setting
163+ .python-version
164+ # VS Code settings
165+ settings.json
Original file line number Diff line number Diff line change 1+ import os
12import subprocess
23import sys
3- import os
4-
54from collections import namedtuple
6-
75from tkinter .messagebox import showinfo
6+
87from thonny import get_workbench
98from thonny .running import get_front_interpreter_for_subprocess
109
@@ -45,7 +44,7 @@ def prepare_run_environment(self):
4544 binfolder = plugins_folder .replace ("lib/python/site-packages" , "bin" )
4645
4746 os .environ ["PYTHONPATH" ] = plugins_folder + (
48- ":" + os .environ ["PYTHONPATH" ] if os . environ [ "PYTHONPATH" ] else ""
47+ ":" + os .environ ["PYTHONPATH" ] if "PYTHONPATH" in os . environ . keys () else ""
4948 )
5049 os .environ ["PATH" ] = binfolder + ":" + plugins_folder + ":" + os .environ ["PATH" ]
5150
You can’t perform that action at this time.
0 commit comments