Changeset 104
- Timestamp:
- 03/21/04 13:50:57 (5 years ago)
- Files:
-
- 05/bugfix/kombilo.py (modified) (2 diffs)
- 05/bugfix/v.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
05/bugfix/kombilo.py
r68 r104 6115 6115 self.lF = (StringVar(), IntVar(), StringVar()) 6116 6116 6117 gifpath = os.path.join(sys.path[0],'gifs') 6117 if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] 6118 else: SYSPATH = sys.path[0] 6119 6120 gifpath = os.path.join(SYSPATH,'gifs') 6118 6121 try: 6119 6122 self.boardImg = PhotoImage(file=os.path.join(gifpath, 'board.gif')) … … 6508 6511 root.withdraw() 6509 6512 6513 if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] 6514 else: SYSPATH = sys.path[0] 6515 6510 6516 try: 6511 root.option_readfile(os.path.join( sys.path[0], 'kombilo.app'))6517 root.option_readfile(os.path.join(SYSPATH, 'kombilo.app')) 6512 6518 except TclError: 6513 6519 showwarning('Error', 'Error reading kombilo.app') 05/bugfix/v.py
r41 r104 2739 2739 # try to load icons for navigation buttons 2740 2740 2741 self.basepath = sys.path[0] 2741 if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] 2742 else: SYSPATH = sys.path[0] 2743 2744 self.basepath = SYSPATH 2742 2745 self.sgfpath = os.curdir 2743 2746 self.optionspath = self.basepath … … 2889 2892 # The board 2890 2893 2891 gifpath = os.path.join(sys.path[0],'gifs') 2894 if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] 2895 else: SYSPATH = sys.path[0] 2896 2897 gifpath = os.path.join(SYSPATH,'gifs') 2892 2898 2893 2899 try: … … 2946 2952 root = Tk() 2947 2953 root.withdraw() 2954 2955 if sys.path[0].endswith('library.zip'): SYSPATH = os.path.split(sys.path[0])[0] 2956 else: SYSPATH = sys.path[0] 2957 2948 2958 try: 2949 root.option_readfile(os.path.join( sys.path[0], 'v.app'))2959 root.option_readfile(os.path.join(SYSPATH, 'v.app')) 2950 2960 except TclError: 2951 2961 showwarning('Error', 'Error reading v.app')
