Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fedbec6

Browse files
committed
wrap calls to tk.getvar with str() in setupext.py. Was returning a
Tcl_Obj on some systems, strings on others. svn path=/trunk/matplotlib/; revision=2727
1 parent b7d5925 commit fedbec6

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2006-08-29 setupext.py: wrap calls to tk.getvar() with str(). On some
2+
systems, getvar returns a Tcl_Obj instead of a string - DSD
3+
14
2006-08-28 mathtext2.py: Sub/superscripts can now be complex (i.e.
25
fractions etc.). The demo is also updated - ES
36

setupext.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,18 +354,18 @@ def find_tcltk():
354354
o.tkv = ""
355355
else:
356356
tk.withdraw()
357-
o.tcl_lib = os.path.normpath(os.path.join((tk.getvar('tcl_library')), '../'))
357+
o.tcl_lib = os.path.normpath(os.path.join(str(tk.getvar('tcl_library')), '../'))
358358
o.tk_lib = os.path.normpath(os.path.join(str(tk.getvar('tk_library')), '../'))
359359
o.tkv = str(Tkinter.TkVersion)[:3]
360-
o.tcl_inc = os.path.normpath(os.path.join((tk.getvar('tcl_library')),
360+
o.tcl_inc = os.path.normpath(os.path.join(str(tk.getvar('tcl_library')),
361361
'../../include/tcl'+o.tkv))
362362
if not os.path.exists(o.tcl_inc):
363-
o.tcl_inc = os.path.normpath(os.path.join((tk.getvar('tcl_library')),
363+
o.tcl_inc = os.path.normpath(os.path.join(str(tk.getvar('tcl_library')),
364364
'../../include'))
365-
o.tk_inc = os.path.normpath(os.path.join((tk.getvar('tk_library')),
365+
o.tk_inc = os.path.normpath(os.path.join(str(tk.getvar('tk_library')),
366366
'../../include/tk'+o.tkv))
367367
if not os.path.exists(o.tk_inc):
368-
o.tk_inc = os.path.normpath(os.path.join((tk.getvar('tk_library')),
368+
o.tk_inc = os.path.normpath(os.path.join(str(tk.getvar('tk_library')),
369369
'../../include'))
370370

371371
if ((not os.path.exists(os.path.join(o.tk_inc,'tk.h'))) and

0 commit comments

Comments
 (0)