Lines 2848-2861
Link Here
|
2848 |
command = self.toggleDatawindow, indicatoron=0) |
2848 |
command = self.toggleDatawindow, indicatoron=0) |
2849 |
|
2849 |
|
2850 |
# try to load icons for navigation buttons |
2850 |
# try to load icons for navigation buttons |
2851 |
|
|
|
2852 |
if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] |
2853 |
else: SYSPATH = sys.path[0] |
2854 |
|
2855 |
self.basepath = SYSPATH |
2856 |
self.sgfpath = os.curdir |
2857 |
self.optionspath = self.basepath |
2858 |
self.currentFile = '' |
2859 |
|
2851 |
|
2860 |
self.tkImages = [] |
2852 |
self.tkImages = [] |
2861 |
for button, filename in [(self.nextButton, 'fwd'), (self.prevButton, 'bwd'), |
2853 |
for button, filename in [(self.nextButton, 'fwd'), (self.prevButton, 'bwd'), |
Lines 3009-3019
Link Here
|
3009 |
|
3001 |
|
3010 |
# The board |
3002 |
# The board |
3011 |
|
3003 |
|
3012 |
if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] |
3004 |
SYSPATH = '/usr/share/kombilo' |
3013 |
else: SYSPATH = sys.path[0] |
3005 |
self.basepath = SYSPATH |
3014 |
|
|
|
3015 |
gifpath = os.path.join(SYSPATH,'gifs') |
3006 |
gifpath = os.path.join(SYSPATH,'gifs') |
3016 |
|
3007 |
|
|
|
3008 |
self.sgfpath = os.curdir |
3009 |
self.optionspath = self.basepath |
3010 |
self.currentFile = '' |
3011 |
|
3017 |
try: |
3012 |
try: |
3018 |
self.boardImg = PhotoImage(file=os.path.join(gifpath, 'board.gif')) |
3013 |
self.boardImg = PhotoImage(file=os.path.join(gifpath, 'board.gif')) |
3019 |
except (TclError, IOError): |
3014 |
except (TclError, IOError): |
Lines 3070-3078
Link Here
|
3070 |
root = Tk() |
3065 |
root = Tk() |
3071 |
root.withdraw() |
3066 |
root.withdraw() |
3072 |
|
3067 |
|
3073 |
if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] |
3068 |
SYSPATH = '/usr/share/kombilo' |
3074 |
else: SYSPATH = sys.path[0] |
|
|
3075 |
|
3076 |
try: |
3069 |
try: |
3077 |
root.option_readfile(os.path.join(SYSPATH, 'v.app')) |
3070 |
root.option_readfile(os.path.join(SYSPATH, 'v.app')) |
3078 |
except TclError: |
3071 |
except TclError: |