diff options
Diffstat (limited to 'scripts/server/ice/testdynamic.py')
-rwxr-xr-x | scripts/server/ice/testdynamic.py | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/scripts/server/ice/testdynamic.py b/scripts/server/ice/testdynamic.py deleted file mode 100755 index 09b77d9b9..000000000 --- a/scripts/server/ice/testdynamic.py +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2013-2022 The Mumble Developers. All rights reserved. -# Use of this source code is governed by a BSD-style license -# that can be found in the LICENSE file at the root of the -# Mumble source tree or at <https://www.mumble.info/LICENSE>. - -# -*- coding: utf-8 -import Ice, IcePy, sys, tempfile, os - -ice = Ice.initialize(sys.argv) - -proxy = ice.stringToProxy('Meta:tcp -h 127.0.0.1 -p 6502') - -try: - slice = IcePy.Operation('getSlice', Ice.OperationMode.Idempotent, Ice.OperationMode.Idempotent, True, (), (), (), IcePy._t_string, ()).invoke(proxy, ((), None)) - - (slicefiledesc, slicefilepath) = tempfile.mkstemp(suffix = '.ice') - slicefile = os.fdopen(slicefiledesc, 'w') - slicefile.write(slice) - slicefile.flush() - Ice.loadSlice('', ['-I' + Ice.getSliceDir(), slicefilepath]) - slicefile.close() - os.remove(slicefilepath) - - print 'Using dynamic slice' -except Exception: - Ice.loadSlice('', ['-I' + Ice.getSliceDir(), 'Murmur.ice']) - print 'Using bundled slice' - -import Murmur - -meta = Murmur.MetaPrx.checkedCast(proxy) - -print meta.getVersion() |