|
@@ -1,7 +1,7 @@
|
|
|
#!/usr/bin/env python3
|
|
#!/usr/bin/env python3
|
|
|
"""Manage a list of book-jobs,
|
|
"""Manage a list of book-jobs,
|
|
|
return a description list for the website"""
|
|
return a description list for the website"""
|
|
|
-
|
|
|
|
|
|
|
+import os
|
|
|
import shlex
|
|
import shlex
|
|
|
import re
|
|
import re
|
|
|
from time import time
|
|
from time import time
|
|
@@ -15,8 +15,10 @@ class qManager:
|
|
|
last_id = 0
|
|
last_id = 0
|
|
|
PATH = ""
|
|
PATH = ""
|
|
|
|
|
|
|
|
- def __init__(self, update_cb, path="/tmp/"):
|
|
|
|
|
|
|
+ def __init__(self, update_cb, path="/tmp/books/"):
|
|
|
"""Init the manager. Set output path"""
|
|
"""Init the manager. Set output path"""
|
|
|
|
|
+ if not os.path.isdir(path):
|
|
|
|
|
+ os.makedirs(path, exist_ok=True)
|
|
|
self.PATH = path
|
|
self.PATH = path
|
|
|
self.update_cb = update_cb
|
|
self.update_cb = update_cb
|
|
|
|
|
|