From 949ea036642e4640cf09aed1b2e70ca739579504 Mon Sep 17 00:00:00 2001 From: Mark Spruiell Date: Wed, 29 Mar 2017 15:36:53 -0700 Subject: ICE-7716 - more scripting language fixes --- python/modules/IcePy/Communicator.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'python/modules/IcePy/Communicator.cpp') diff --git a/python/modules/IcePy/Communicator.cpp b/python/modules/IcePy/Communicator.cpp index 563c02e1d31..ef4472f325f 100644 --- a/python/modules/IcePy/Communicator.cpp +++ b/python/modules/IcePy/Communicator.cpp @@ -250,11 +250,7 @@ communicatorInit(CommunicatorObject* self, PyObject* args, PyObject* /*kwds*/) // data.valueFactoryManager = new ValueFactoryManager; - if(argList) - { - data.properties = Ice::createProperties(seq, data.properties); - } - else if(!data.properties) + if(!data.properties) { data.properties = Ice::createProperties(); } @@ -263,6 +259,11 @@ communicatorInit(CommunicatorObject* self, PyObject* args, PyObject* /*kwds*/) { data.properties->load(getString(configFile)); } + + if(argList) + { + data.properties = Ice::createProperties(seq, data.properties); + } } catch(const Ice::Exception& ex) { -- cgit v1.2.3