diff options
Diffstat (limited to 'python/modules/IcePy/Communicator.cpp')
-rw-r--r-- | python/modules/IcePy/Communicator.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
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) { |