eric6/PipInterface/PipPackagesWidget.py

changeset 7836
2f0d208b8137
parent 7826
704c46e040a2
child 7905
1f0cb4361065
equal deleted inserted replaced
7835:0835ed67714b 7836:2f0d208b8137
1155 1155
1156 if not os.path.exists(cfgFile): 1156 if not os.path.exists(cfgFile):
1157 try: 1157 try:
1158 with open(cfgFile, "w") as f: 1158 with open(cfgFile, "w") as f:
1159 f.write("[global]\n") 1159 f.write("[global]\n")
1160 except (IOError, OSError): 1160 except OSError:
1161 # ignore these 1161 # ignore these
1162 pass 1162 pass
1163 1163
1164 # check, if the destination is writeable 1164 # check, if the destination is writeable
1165 if not os.access(cfgFile, os.W_OK): 1165 if not os.access(cfgFile, os.W_OK):

eric ide

mercurial