diff --git a/thonny/__init__.py b/thonny/__init__.py index 4c79a0215..22f75f3b5 100644 --- a/thonny/__init__.py +++ b/thonny/__init__.py @@ -125,6 +125,7 @@ def get_ipc_file_path(): base_dir = get_thonny_user_dir() import getpass + username = getpass.getuser() ipc_dir = os.path.join(base_dir, "thonny-%s" % username) diff --git a/thonny/plugins/files.py b/thonny/plugins/files.py index 582ae5e98..ce9d45f5e 100644 --- a/thonny/plugins/files.py +++ b/thonny/plugins/files.py @@ -252,9 +252,6 @@ def _get_venv_path(self): if fnam == CFGFILE: return os.path.dirname(path) except Exception: - import traceback - - traceback.print_stack() logger.exception("_get_venv_path") def check_for_venv(self):