ceph/teuthology/locker/locker.py

20 lines
323 B
Python
Raw Normal View History

2011-07-06 00:16:08 +00:00
#!/usr/bin/env python
import os
import sys
2011-07-06 00:16:08 +00:00
import web
abspath = os.path.dirname(__file__)
if abspath not in sys.path:
sys.path.append(abspath)
2011-07-06 00:16:08 +00:00
from api import Lock, MachineLock
urls = (
'/lock', 'Lock',
'/lock/(.*)', 'MachineLock',
)
app = web.application(urls, globals())
application = app.wsgifunc()