pull/110/head
admire 2021-03-06 14:45:09 +02:00
rodzic 722ba1b60e
commit db949996b9
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -19,8 +19,9 @@
***************************************************************************/ ***************************************************************************/
""" """
from os import environ, listdir, mknod from os import environ, listdir
from os.path import join, exists, abspath, isabs from os.path import join, exists, abspath, isabs
from pathlib import Path
from shutil import move from shutil import move
from subprocess import call from subprocess import call
from sys import exit, stderr from sys import exit, stderr
@ -242,7 +243,7 @@ class Importer(object):
def lockfile(self): def lockfile(self):
setup_lockfile = join(self.default['SETTINGS'], 'importer.lock') setup_lockfile = join(self.default['SETTINGS'], 'importer.lock')
if not exists(setup_lockfile): if not exists(setup_lockfile):
mknod(setup_lockfile) Path(setup_lockfile).touch()
def run(self): def run(self):
"""First checker.""" """First checker."""