File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ def init_ui(self):
453
453
454
454
# check if any Python is installed
455
455
if os .path .exists (get_data .DB_FILE ):
456
- with open (get_data .DB_FILE , "r" ) as f :
456
+ with open (get_data .DB_FILE , "r" , encoding = "utf-8" ) as f :
457
457
lines = f .readlines ()
458
458
if len (lines ) < 2 :
459
459
self .launching_without_python ()
@@ -516,7 +516,7 @@ def pop_interpreter_table(self):
516
516
"""
517
517
get_data .ensure_dbfile ()
518
518
519
- with open (get_data .DB_FILE , newline = "" ) as cf :
519
+ with open (get_data .DB_FILE , newline = "" , encoding = "utf-8" ) as cf :
520
520
reader = csv .DictReader (cf , delimiter = "," )
521
521
self .model_interpreter_table .setRowCount (0 )
522
522
for info in reader :
@@ -590,7 +590,7 @@ def select_active_dir(self):
590
590
591
591
if active_dir != "" :
592
592
if os .path .exists (active_file ):
593
- with open (active_file , "w" ) as f :
593
+ with open (active_file , "w" , encoding = "utf-8" ) as f :
594
594
f .write (active_dir )
595
595
self .pop_venv_table ()
596
596
self .update_label ()
You can’t perform that action at this time.
0 commit comments