Commit e30a5f4d authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Windows: Fix windows version (again...)

Showing with 6 additions and 2 deletions
+6 -2
......@@ -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
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment