-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtuxwordsmith.py
executable file
·53 lines (41 loc) · 1.24 KB
/
tuxwordsmith.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
45
46
47
48
49
50
51
52
53
#!/usr/bin/env python
"""
/**********************************************************
Organization :AsymptopiaSoftware | Software@theLimit
Website :www.asymptopia.org
Support :www.asymptopia.org/forum
Author :Charles B. Cosse
Email :ccosse@asymptopia.org
Copyright :(C) 2006-2015 Asymptopia Software
License :GPLv3
***********************************************************/
"""
import os,sys,string,time
sys.path.append('/usr/share/games/tuxwordsmith/lib')
from TuxWordSmith.tws import *
def usage():
msg="""
Usage: tuxwordsmith [OPTION]
Available options are:
-help Show this help
-wx Enable the wx admin interface
-d <dictionary> Use specified dictionary
Example:
./tuxwordsmith -d Spanish-English
For additional languages, follow the download link at
http://www.asymptopia.org for extra languages and unzip
each additional language to the xdxf directory appropriate
to your installation.
"""
print msg
if __name__ == "__main__":
appdir='TuxWordSmith'
if len(sys.argv)==1:
x=TuxWordSmithApp()
elif sys.argv[1]=='-help':
usage()
elif sys.argv.count('-wx')>0:
from TuxWordSmith.tws_wx import *
x=TuxWordSmithAppWX()
else:
x=TuxWordSmithApp()