Move lock file after create dirs
This commit is contained in:
parent
50fafaa8df
commit
be3ec60141
@ -33,8 +33,6 @@ class CB:
|
|||||||
/ f'{PROG}')
|
/ f'{PROG}')
|
||||||
self.data_dir = data_dir
|
self.data_dir = data_dir
|
||||||
|
|
||||||
self.ensure_run_once()
|
|
||||||
|
|
||||||
self.checksum_command = 'sha256sum'
|
self.checksum_command = 'sha256sum'
|
||||||
|
|
||||||
self.images_dir = data_dir / 'images'
|
self.images_dir = data_dir / 'images'
|
||||||
@ -47,6 +45,7 @@ class CB:
|
|||||||
self.created_scripts: List[Path] = []
|
self.created_scripts: List[Path] = []
|
||||||
|
|
||||||
self.ensure_dirs()
|
self.ensure_dirs()
|
||||||
|
self.ensure_run_once()
|
||||||
logging.basicConfig(
|
logging.basicConfig(
|
||||||
filename=f'{data_dir}/{PROG}.log',
|
filename=f'{data_dir}/{PROG}.log',
|
||||||
format='%(levelname)s:%(asctime)s - %(message)s',
|
format='%(levelname)s:%(asctime)s - %(message)s',
|
||||||
|
Loading…
Reference in New Issue
Block a user