Найти - Пользователи
Полная версия: Проверка папки, CherryPy
Начало » Python для новичков » Проверка папки, CherryPy
1
andreiru
Добрый день !

Нужно проверять папку на наличие документов, после запуска CherryPy:

Как-то так:
while True:
# тут код для проверки
time.sleep(60)
Подскажите как это правильно сделать в приложение CherryPy:
import cherrypy
class HelloWorld(object):
def index(self):
return "Hello World!"
index.exposed = True

cherrypy.quickstart(HelloWorld())
?
slav0nic
смотри
cherrypy.process.plugins.Monitor
cherrypy.process.plugins.BackgroundTask
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB