forked from tazjel/declaracad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
44 lines (35 loc) · 1.24 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""
Copyright (c) 2017, Jairus Martin.
Distributed under the terms of the GPL v3 License.
The full license is in the file LICENSE, distributed with this software.
Created on Dec 6, 2015
@author: jrm
"""
import enaml
import faulthandler
faulthandler.enable()
#: Must be installed before enaml is imported
import enamlx
enamlx.install()
from declaracad import occ
occ.install()
from declaracad.core.workbench import DeclaracadWorkbench
with enaml.imports():
#: TODO autodiscover these
from declaracad.core.manifest import DeclaracadManifest
from declaracad.ui.manifest import UIManifest
from declaracad.occ.manifest import ViewerManifest
from declaracad.console.manifest import ConsoleManifest
from declaracad.docs.manifest import DocsManifest
from declaracad.editor.manifest import EditorManifest
from declaracad.toolbox.manifest import ToolboxManifest
if __name__ == '__main__':
workbench = DeclaracadWorkbench()
workbench.register(DeclaracadManifest())
workbench.register(UIManifest())
workbench.register(ConsoleManifest())
workbench.register(DocsManifest())
workbench.register(ViewerManifest())
workbench.register(EditorManifest())
workbench.register(ToolboxManifest())
workbench.run()