-# Copyright (C) 2015-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+#!/usr/bin/env python3
+# Copyright (C) 2015-2023 CEA, EDF, OPEN CASCADE
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# Connect to one instance
import runConsole
- port = all_instances[len(all_instances)/2].get_port()
+ port = all_instances[len(all_instances)//2].get_port()
print("Connect to instance running on port", port)
self.__connectToInstance(port)
# Connect to another instance
import runConsole
- port = all_instances[len(all_instances)/4].get_port()
+ port = all_instances[len(all_instances)//4].get_port()
print("Connect to instance running on port", port)
self.__connectToInstance(port)