From 2e37375a6a949df82780d36e42ef4d554228f6c7 Mon Sep 17 00:00:00 2001 From: Ariel Rossanigo Date: Fri, 7 Sep 2018 14:45:56 -0300 Subject: [PATCH] fix bug --- spyder/utils/programs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spyder/utils/programs.py b/spyder/utils/programs.py index 4246adb0f18..a563684cc72 100644 --- a/spyder/utils/programs.py +++ b/spyder/utils/programs.py @@ -455,7 +455,7 @@ def is_module_installed(module_name, version=None, installed_version=None, finally: if not f.closed: f.close() - os.remove(f) + os.remove(script) else: # Try to not take a wrong decision if there is no interpreter # available (needed for the change_pystartup method of ExtConsole