Fix indent
This commit is contained in:
parent
374e1fdd1f
commit
4078e5e957
20
crater.py
20
crater.py
|
@ -35,15 +35,15 @@ running = False # нужно для проверки
|
|||
# класс для watchdog.
|
||||
# При обнаружении изменений в папках content и themes/{config['theme']}, перегенерировать папку public
|
||||
class Develop(FileSystemEventHandler):
|
||||
def on_modified(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
def on_created(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
def on_deleted(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
def on_modified(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
def on_created(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
def on_deleted(self, event):
|
||||
print(f'event type: {event.event_type} path : {event.src_path}')
|
||||
crater()
|
||||
|
||||
|
||||
# Функция для запуска разработки
|
||||
|
@ -138,7 +138,7 @@ def crater(prod=False):
|
|||
for source_folder in ('static', f"themes/{config['theme']}/static"):
|
||||
shutil.copytree(source_folder, 'public', dirs_exist_ok=True)
|
||||
|
||||
develop(prod)
|
||||
develop(prod)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue