Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble-scripts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Ziegler <diese-addy@funzt-halt.net>2012-07-15 13:32:00 +0400
committerMichael Ziegler <diese-addy@funzt-halt.net>2012-07-15 13:32:00 +0400
commit18920d639ffbc5a46229a80e98f0a7927b6ccab4 (patch)
tree60c352b92dd8d4fb2a41c7f5595f20056690c370 /Authenticators
parent16067ff55d46253b0c9761bdb276f864dfc188ac (diff)
add a fallback for when Ice.getSliceDir() is empty
Diffstat (limited to 'Authenticators')
-rwxr-xr-xAuthenticators/phpBB3/phpBB3auth.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Authenticators/phpBB3/phpBB3auth.py b/Authenticators/phpBB3/phpBB3auth.py
index 20c67e9..7b974ef 100755
--- a/Authenticators/phpBB3/phpBB3auth.py
+++ b/Authenticators/phpBB3/phpBB3auth.py
@@ -222,7 +222,10 @@ def do_main_program():
#--- Authenticator implementation
# All of this has to go in here so we can correctly daemonize the tool
# without loosing the file descriptors opened by the Ice module
- Ice.loadSlice('', ['-I' + Ice.getSliceDir(), cfg.ice.slice])
+ slicedir = Ice.getSliceDir()
+ if not slicedir:
+ slicedir = "/usr/share/slice"
+ Ice.loadSlice('', ['-I' + slicedir, cfg.ice.slice])
import Murmur
class phpBBauthenticatorApp(Ice.Application):