mirror of https://gitlab.com/pamhyr/pamhyr2
Windows: Fix windows version (again...)
parent
8cdb3010b9
commit
e30a5f4d91
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue