1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Prevent privilege loading faillure from breaking the code in maxos

This commit is contained in:
sam 2012-04-29 16:50:44 +07:00
parent 30cce72678
commit c323d1bbc9
2 changed files with 5 additions and 1 deletions

0
libs/__init__.py Normal file
View File

View File

@ -5,6 +5,7 @@
server run.
"""
import sys
import os
import hashlib
import thread
@ -18,7 +19,10 @@ from src import settings, setup_path, Paste
setup_path()
from privilege import drop_privileges_permanently, coerce_user, coerce_group
try:
from privilege import drop_privileges_permanently, coerce_user, coerce_group
except AttributeError:
pass # privilege does't work on several plateform
from bottle import (Bottle, route, run, abort,
static_file, debug, view, request)