Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 193937 | Differences between
and this patch

Collapse All | Expand All

(-)kombilo05/kombilo.py~ (-5 / +3 lines)
Lines 6382-6390 Link Here
6382
        self.sFC = IntVar()
6382
        self.sFC = IntVar()
6383
        self.lF = (StringVar(), IntVar(), StringVar())
6383
        self.lF = (StringVar(), IntVar(), StringVar())
6384
6384
6385
        if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0]
6386
        else: SYSPATH = sys.path[0]
6387
6388
        gifpath = os.path.join(SYSPATH,'gifs')
6385
        gifpath = os.path.join(SYSPATH,'gifs')
6389
        try:
6386
        try:
6390
            self.boardImg = PhotoImage(file=os.path.join(gifpath, 'board.gif'))
6387
            self.boardImg = PhotoImage(file=os.path.join(gifpath, 'board.gif'))
Lines 6412-6418 Link Here
6412
        self.capB, self.capW = 0, 0
6409
        self.capB, self.capW = 0, 0
6413
        self.board.invertSelection = self.options.invertSelection
6410
        self.board.invertSelection = self.options.invertSelection
6414
        
6411
        
6412
        self.basepath = SYSPATH
6415
        self.datapath = self.basepath
6413
        self.datapath = self.basepath
6414
        self.sgfpath = os.curdir
6416
6415
6417
        self.board.pack(expand=YES, fill=BOTH)
6416
        self.board.pack(expand=YES, fill=BOTH)
6418
        self.board.update_idletasks()
6417
        self.board.update_idletasks()
Lines 6786-6793 Link Here
6786
root = Tk()
6785
root = Tk()
6787
root.withdraw()
6786
root.withdraw()
6788
6787
6789
if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0]
6788
SYSPATH = '/usr/share/kombilo'
6790
else: SYSPATH = sys.path[0]
6791
6789
6792
try:
6790
try:
6793
    root.option_readfile(os.path.join(SYSPATH, 'kombilo.app'))
6791
    root.option_readfile(os.path.join(SYSPATH, 'kombilo.app'))
(-)kombilo05/v.py~ (-14 / +7 lines)
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:

Return to bug 193937