Lines 5191-5197
Link Here
|
5191 |
elif os.path.isfile(s1): |
5191 |
elif os.path.isfile(s1): |
5192 |
pid = os.fork() |
5192 |
pid = os.fork() |
5193 |
if pid == 0: |
5193 |
if pid == 0: |
5194 |
os.execv(s1, (s1,)+tuple(split(s2))) |
5194 |
os.execv(s1, (s1,)+tuple(split(s2, "||"))) #Changing the seperator to handle path with spaces |
5195 |
showwarning('Error', 'Error starting SGF viewer') |
5195 |
showwarning('Error', 'Error starting SGF viewer') |
5196 |
else: showwarning('Error', s1 + ' not found.') |
5196 |
else: showwarning('Error', s1 + ' not found.') |
5197 |
except OSError: |
5197 |
except OSError: |
Lines 5296-5302
Link Here
|
5296 |
|
5296 |
|
5297 |
l1 = Label(f, text='Enter the command to launch the SGF viewer') |
5297 |
l1 = Label(f, text='Enter the command to launch the SGF viewer') |
5298 |
e1 = Entry(f, width=40, textvariable=self.options.altViewerVar1) |
5298 |
e1 = Entry(f, width=40, textvariable=self.options.altViewerVar1) |
5299 |
l2 = Label(f, text='Enter the command line options, with %f for the filename') |
5299 |
l2 = Label(f, text='Enter the command line options, with %f for the filename, %n for the move number. \n Separate your arguments by ||') |
5300 |
e2 = Entry(f, width=40, textvariable=self.options.altViewerVar2) |
5300 |
e2 = Entry(f, width=40, textvariable=self.options.altViewerVar2) |
5301 |
|
5301 |
|
5302 |
b = Button(f, text='OK', command = window.destroy) |
5302 |
b = Button(f, text='OK', command = window.destroy) |
Lines 6403-6415
Link Here
|
6403 |
self.board.state('normal', self.nextMove) |
6403 |
self.board.state('normal', self.nextMove) |
6404 |
self.board.shadedStoneVar.set(1) |
6404 |
self.board.shadedStoneVar.set(1) |
6405 |
|
6405 |
|
|
|
6406 |
self.basepath = SYSPATH |
6406 |
self.initButtons(navFrame, labelFrame) |
6407 |
self.initButtons(navFrame, labelFrame) |
6407 |
self.initMenus() |
6408 |
self.initMenus() |
6408 |
self.moveno.set(0) |
6409 |
self.moveno.set(0) |
6409 |
self.capB, self.capW = 0, 0 |
6410 |
self.capB, self.capW = 0, 0 |
6410 |
self.board.invertSelection = self.options.invertSelection |
6411 |
self.board.invertSelection = self.options.invertSelection |
6411 |
|
6412 |
|
6412 |
self.basepath = SYSPATH |
|
|
6413 |
self.datapath = self.basepath |
6413 |
self.datapath = self.basepath |
6414 |
self.sgfpath = os.curdir |
6414 |
self.sgfpath = os.curdir |
6415 |
|
6415 |
|