src/eric7/Project/Project.py

branch
eric7
changeset 10320
ff28050f5dec
parent 10311
0a141f9ae677
child 10321
4a017fdf316f
equal deleted inserted replaced
10319:e6e93bf64a9c 10320:ff28050f5dec
7128 7128
7129 if not os.path.isfile( 7129 if not os.path.isfile(
7130 self.__venvConfiguration["interpreter"] 7130 self.__venvConfiguration["interpreter"]
7131 ) or not os.access(self.__venvConfiguration["interpreter"], os.X_OK): 7131 ) or not os.access(self.__venvConfiguration["interpreter"], os.X_OK):
7132 self.__venvConfiguration["interpreter"] = "" 7132 self.__venvConfiguration["interpreter"] = ""
7133 upgrade = EricMessageBox.yesNo(
7134 None,
7135 self.tr("Interpreter Missing"),
7136 self.tr(
7137 "The configured interpreter of the embedded environment does"
7138 " not exist anymore. Shall the environment be upgraded?"
7139 ),
7140 yesDefault=True,
7141 )
7142 if upgrade:
7143 self.__createEmbeddedEnvironment(upgrade=True)
7133 except (OSError, json.JSONDecodeError): 7144 except (OSError, json.JSONDecodeError):
7134 # the configuration file does not exist or is invalid JSON 7145 # the configuration file does not exist or is invalid JSON
7135 self.__initVenvConfiguration() 7146 self.__initVenvConfiguration()
7136 7147
7137 7148

eric ide

mercurial