diff options
author | Michael Ziegler <diese-addy@funzt-halt.net> | 2012-07-15 13:32:00 +0400 |
---|---|---|
committer | Michael Ziegler <diese-addy@funzt-halt.net> | 2012-07-15 13:32:00 +0400 |
commit | 18920d639ffbc5a46229a80e98f0a7927b6ccab4 (patch) | |
tree | 60c352b92dd8d4fb2a41c7f5595f20056690c370 | |
parent | 16067ff55d46253b0c9761bdb276f864dfc188ac (diff) |
add a fallback for when Ice.getSliceDir() is empty
-rwxr-xr-x | Authenticators/phpBB3/phpBB3auth.py | 5 |
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): |