mirror of
https://github.com/ceph/ceph
synced 2024-12-24 20:33:27 +00:00
20 lines
323 B
Python
Executable File
20 lines
323 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import os
|
|
import sys
|
|
import web
|
|
|
|
abspath = os.path.dirname(__file__)
|
|
if abspath not in sys.path:
|
|
sys.path.append(abspath)
|
|
|
|
from api import Lock, MachineLock
|
|
|
|
urls = (
|
|
'/lock', 'Lock',
|
|
'/lock/(.*)', 'MachineLock',
|
|
)
|
|
|
|
app = web.application(urls, globals())
|
|
application = app.wsgifunc()
|