diff options
author | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-03-30 16:58:43 +0400 |
---|---|---|
committer | Benjamin Jemlich <pcgod@users.sourceforge.net> | 2010-03-30 17:08:36 +0400 |
commit | 80a79071ab638bd8cc9e2c87123dbd07f627b49f (patch) | |
tree | c47f6855e0bd9136d4501bdc0488623611ade9ac /scripts | |
parent | 77e70aa902c7ed87124a986e9ebc6c55ad00b610 (diff) |
Fix some Ice examples
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/testauth.py | 2 | ||||
-rwxr-xr-x | scripts/testcallback.py | 2 | ||||
-rwxr-xr-x | scripts/testdynamic.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/testauth.py b/scripts/testauth.py index ad2e64ce4..a6ce51495 100755 --- a/scripts/testauth.py +++ b/scripts/testauth.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 import Ice, sys, time from M2Crypto import X509; -Ice.loadSlice('Murmur.ice') +Ice.loadSlice('', ['-I' + Ice.getSliceDir(), 'Murmur.ice']) import Murmur class ServerAuthenticatorI(Murmur.ServerUpdatingAuthenticator): diff --git a/scripts/testcallback.py b/scripts/testcallback.py index fe07522e5..e1f5dad2f 100755 --- a/scripts/testcallback.py +++ b/scripts/testcallback.py @@ -3,7 +3,7 @@ import Ice, sys, sha from M2Crypto import X509; -Ice.loadSlice('Murmur.ice') +Ice.loadSlice('', ['-I' + Ice.getSliceDir(), 'Murmur.ice']) import Murmur class MetaCallbackI(Murmur.MetaCallback): diff --git a/scripts/testdynamic.py b/scripts/testdynamic.py index 7d1e1316d..c47ff9feb 100755 --- a/scripts/testdynamic.py +++ b/scripts/testdynamic.py @@ -12,11 +12,11 @@ try: slicefile = tempfile.NamedTemporaryFile(suffix = '.ice') slicefile.write(slice) slicefile.flush() - Ice.loadSlice(slicefile.name) + Ice.loadSlice('', ['-I' + Ice.getSliceDir(), slicefile.name]) slicefile.close() print 'Using dynamic slice' except: - Ice.loadSlice('Murmur.ice') + Ice.loadSlice('', ['-I' + Ice.getSliceDir(), 'Murmur.ice']) print 'Using bundled slice' import Murmur |