equal
deleted
inserted
replaced
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 |
94 extensions.append(a) |
95 extensions.append(a) |
95 else: |
96 else: |
96 usage() |
97 usage() |
97 sys.exit() |
98 sys.exit() |
98 |
99 |
99 beremiz_dir = os.path.dirname(os.path.realpath(__file__)) |
100 import util.paths as paths |
|
101 beremiz_dir = paths.AbsDir(__file__) |
100 |
102 |
101 if len(argv) > 1: |
103 if len(argv) > 1: |
102 usage() |
104 usage() |
103 sys.exit() |
105 sys.exit() |
104 elif len(argv) == 1: |
106 elif len(argv) == 1: |