mirror of
https://github.com/ceph/ceph
synced 2024-12-28 22:43:29 +00:00
962a9ae2bb
Fixing this would require some more significant changes... and tempt me with rewriting every module in the directory. (cherry picked from commit 3fc39a59fd415a4e4e6f2a0354fe900477167e51)
20 lines
330 B
Python
Executable File
20 lines
330 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 # noqa
|
|
|
|
urls = (
|
|
'/lock', 'Lock',
|
|
'/lock/(.*)', 'MachineLock',
|
|
)
|
|
|
|
app = web.application(urls, globals())
|
|
application = app.wsgifunc()
|