forked from ODM2/ODMToolsPython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathODMTools.py
More file actions
executable file
·43 lines (30 loc) · 824 Bytes
/
ODMTools.py
File metadata and controls
executable file
·43 lines (30 loc) · 824 Bytes
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
#!/usr/local/bin/python
# ## Loading up information ####
import logging
from odmtools.common.logger import LoggerTool
tool = LoggerTool()
logger = tool.setupLogger(__name__, __name__ + '.log', 'w', logging.DEBUG)
logger.debug("Welcome to ODMTools Python. Please wait as system loads")
###############################
#import os
#import sys
'''
this_file = os.path.realpath(__file__)
directory = os.path.dirname(os.path.dirname(this_file))
sys.path.insert(0, directory)
'''
import wx
wx.Log.SetLogLevel(0)
from odmtools.gui import frmODMTools
def create(parent):
return frmODMTools.create(parent)
def runODM():
app = wx.App(False)
frame = create(None)
frame.Show()
app.MainLoop()
if __name__ == '__main__':
app = wx.App(False)
frame = create(None)
frame.Show()
app.MainLoop()