plcopen/definitions.py
changeset 1680 6db967480b7d
parent 1625 be3f68731798
child 1736 7e61baa047f0
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
    22 # along with this program; if not, write to the Free Software
    23 # along with this program; if not, write to the Free Software
    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 
    26 
    26 from os.path import join, split, realpath
    27 from os.path import join, split, realpath
    27 sd = split(realpath(__file__))[0]
    28 import util.paths as paths
       
    29 sd = paths.AbsDir(__file__)
    28 
    30 
    29 # Override gettext _ in this module
    31 # Override gettext _ in this module
    30 # since we just want string to be added to dictionnary
    32 # since we just want string to be added to dictionnary
    31 # but translation should happen here
    33 # but translation should happen here
    32 _ = lambda x:x
    34 _ = lambda x:x