connectors/__init__.py
changeset 1680 6db967480b7d
parent 1571 486f94a8032c
child 1731 6ebd9c40b2be
equal deleted inserted replaced
1679:2fcea15858a5 1680:6db967480b7d
     3 
     3 
     4 # This file is part of Beremiz, a Integrated Development Environment for
     4 # This file is part of Beremiz, a Integrated Development Environment for
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
     5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival.
     6 #
     6 #
     7 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
     7 # Copyright (C) 2007: Edouard TISSERANT and Laurent BESSARD
       
     8 # Copyright (C) 2017: Andrey Skvortsov
     8 #
     9 #
     9 # See COPYING file for copyrights details.
    10 # See COPYING file for copyrights details.
    10 #
    11 #
    11 # This program is free software; you can redistribute it and/or
    12 # This program is free software; you can redistribute it and/or
    12 # modify it under the terms of the GNU General Public License
    13 # modify it under the terms of the GNU General Public License
    23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
    24 
    25 
    25 # Package initialisation
    26 # Package initialisation
    26 
    27 
    27 from os import listdir, path
    28 from os import listdir, path
       
    29 import util.paths as paths
    28 
    30 
    29 
    31 _base_path = paths.AbsDir(__file__)
    30 _base_path = path.split(__file__)[0]
       
    31 
    32 
    32 
    33 
    33 def _GetLocalConnectorClassFactory(name):
    34 def _GetLocalConnectorClassFactory(name):
    34     return lambda: getattr(__import__(name, globals(), locals()), name + "_connector_factory")
    35     return lambda: getattr(__import__(name, globals(), locals()), name + "_connector_factory")
    35 
    36