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