equal
deleted
inserted
replaced
|
1 |
1 #!/usr/bin/env python |
2 #!/usr/bin/env python |
2 # -*- coding: utf-8 -*- |
3 # -*- coding: utf-8 -*- |
3 |
4 |
4 # This file is part of Beremiz, a Integrated Development Environment for |
5 # This file is part of Beremiz, a Integrated Development Environment for |
5 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
6 # programming IEC 61131-3 automates supporting plcopen standard and CanFestival. |
35 import __builtin__ |
36 import __builtin__ |
36 import Pyro |
37 import Pyro |
37 import Pyro.core as pyro |
38 import Pyro.core as pyro |
38 |
39 |
39 from runtime import PLCObject, ServicePublisher, MainWorker |
40 from runtime import PLCObject, ServicePublisher, MainWorker |
|
41 from runtime.xenomai import TryPreloadXenomai |
40 import util.paths as paths |
42 import util.paths as paths |
41 |
43 |
42 |
44 |
43 def usage(): |
45 def usage(): |
44 print(""" |
46 print(""" |
131 WorkingDir = os.getcwd() |
133 WorkingDir = os.getcwd() |
132 argv = [WorkingDir] |
134 argv = [WorkingDir] |
133 |
135 |
134 if __name__ == '__main__': |
136 if __name__ == '__main__': |
135 __builtin__.__dict__['_'] = lambda x: x |
137 __builtin__.__dict__['_'] = lambda x: x |
|
138 # TODO: add a cmdline parameter if Trying Preloading Xenomai makes problem |
|
139 TryPreloadXenomai() |
136 |
140 |
137 |
141 |
138 def Bpath(*args): |
142 def Bpath(*args): |
139 return os.path.join(beremiz_dir, *args) |
143 return os.path.join(beremiz_dir, *args) |
140 |
144 |
673 except KeyboardInterrupt: |
677 except KeyboardInterrupt: |
674 pass |
678 pass |
675 |
679 |
676 pyroserver.Quit() |
680 pyroserver.Quit() |
677 sys.exit(0) |
681 sys.exit(0) |
|
682 ys.exit(0) |