mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Windows: Fix windows version (again...)
This commit is contained in:
1 parent
8cdb3010b9
commit
e30a5f4d91
2 files changed
+6
-2
No files matched your search
+5
-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
|
||||
|
||||
|
||||
Reference in new issue
Block a user