Compatibility with every system
This commit is contained in:
parent
3b4496de5b
commit
53556aeba9
|
@ -1,7 +1,7 @@
|
||||||
import os
|
import os
|
||||||
|
|
||||||
class TodosManager:
|
class TodosManager:
|
||||||
def __init__(self, todos_dir="compteur_electrique_data/todos/"):
|
def __init__(self, todos_dir=os.path.join("compteur_electrique_data", "todos")):
|
||||||
try:
|
try:
|
||||||
os.makedirs(todos_dir, exist_ok=True)
|
os.makedirs(todos_dir, exist_ok=True)
|
||||||
except OSError as error:
|
except OSError as error:
|
||||||
|
|
Loading…
Reference in New Issue