opc_ua/client.py
branchwxPython4
changeset 3718 7841b651d601
parent 3678 6c496a8ed2a9
child 3750 f62625418bff
equal deleted inserted replaced
3717:da9ffd572551 3718:7841b651d601
    19 Open62541IncludePaths = [os.path.join(Open62541Path, *dirs) for dirs in [
    19 Open62541IncludePaths = [os.path.join(Open62541Path, *dirs) for dirs in [
    20     ("plugins","include"),
    20     ("plugins","include"),
    21     ("build","src_generated"),
    21     ("build","src_generated"),
    22     ("include",),
    22     ("include",),
    23     ("arch",)]]
    23     ("arch",)]]
       
    24 
       
    25 # Tests need to use other default hosts
       
    26 OPCUA_DEFAULT_HOST = os.environ.get("OPCUA_DEFAULT_HOST", "127.0.0.1")
    24 
    27 
    25 class OPCUAClientEditor(ConfTreeNodeEditor):
    28 class OPCUAClientEditor(ConfTreeNodeEditor):
    26     CONFNODEEDITOR_TABS = [
    29     CONFNODEEDITOR_TABS = [
    27         (_("OPC-UA Client"), "CreateOPCUAClient_UI")]
    30         (_("OPC-UA Client"), "CreateOPCUAClient_UI")]
    28 
    31 
    77                   </xsd:element>
    80                   </xsd:element>
    78                 </xsd:choice>
    81                 </xsd:choice>
    79               </xsd:complexType>
    82               </xsd:complexType>
    80             </xsd:element>
    83             </xsd:element>
    81           </xsd:sequence>
    84           </xsd:sequence>
    82           <xsd:attribute name="Server_URI" type="xsd:string" use="optional" default="opc.tcp://localhost:4840"/>
    85           <xsd:attribute name="Server_URI" type="xsd:string" use="optional" default="opc.tcp://"""+OPCUA_DEFAULT_HOST+""":4840"/>
    83         </xsd:complexType>
    86         </xsd:complexType>
    84       </xsd:element>
    87       </xsd:element>
    85     </xsd:schema>
    88     </xsd:schema>
    86     """
    89     """
    87 
    90