Windows: Fix windows version (again...)

results
Pierre-Antoine Rouby 2023-07-04 16:49:23 +02:00
parent 8cdb3010b9
commit e30a5f4d91
2 changed files with 6 additions and 2 deletions

View File

@ -30,7 +30,7 @@ then
win10
echo " *** PYTHON INSTALL"
if [ ! -f $WINEPREFIX/drive_c/Program Files/Python38/python.exe ];
if [ ! -f "$WINEPREFIX/drive_c/Program Files/Python38/python.exe" ];
then
#DISPLAY=:42.0 wine cmd /c python-3.8.10-amd64.exe /quiet PrependPath=1
wine cmd /c python-3.8.10-amd64.exe PrependPath=1

View File

@ -19,6 +19,8 @@ class Config(SQL):
self.filename = Config.filename()
self.set_default_value()
print(self.filename)
super(Config, self).__init__(filename = self.filename)
def _create(self):
@ -239,7 +241,9 @@ class Config(SQL):
if os.name == 'posix':
file = os.path.expanduser('~') + config_dir + config_file
else:
file = os.path.expanduser('~') + config_file
ndir = os.path.expanduser('~') + config_dir.replace("/", "\\")
os.makedirs(ndir, exist_ok = True)
file = ndir + config_file
return file