File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 17
17
18
18
if sys .platform == 'win32' :
19
19
fpath = 'C:\\ Windows\\ Fonts\\ Tahoma.ttf'
20
- elif sys .platform == 'linux2' :
20
+ elif sys .platform . startswith ( 'linux' ) :
21
21
fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf' ,
22
22
'/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf' ,
23
23
'/usr/share/fonts/truetype/msttcorefonts/Comic_Sans_MS.ttf' ,
Original file line number Diff line number Diff line change @@ -859,11 +859,11 @@ def get_var(file, varname):
859
859
result = p .communicate ()[0 ]
860
860
return result
861
861
862
- tcl_lib_dir = get_var (tcl_config , 'TCL_LIB_SPEC' ).split ()[0 ][2 :]
863
- tcl_inc_dir = get_var (tcl_config , 'TCL_INCLUDE_SPEC' )[2 :]
862
+ tcl_lib_dir = get_var (tcl_config , 'TCL_LIB_SPEC' ).split ()[0 ][2 :]. strip ()
863
+ tcl_inc_dir = get_var (tcl_config , 'TCL_INCLUDE_SPEC' )[2 :]. strip ()
864
864
tcl_lib = get_var (tcl_config , 'TCL_LIB_FLAG' )[2 :].strip ()
865
865
866
- tk_lib_dir = get_var (tk_config , 'TK_LIB_SPEC' ).split ()[0 ][2 :]
866
+ tk_lib_dir = get_var (tk_config , 'TK_LIB_SPEC' ).split ()[0 ][2 :]. strip ()
867
867
tk_inc_dir = get_var (tk_config , 'TK_INCLUDE_SPEC' ).strip ()
868
868
if tk_inc_dir == '' :
869
869
tk_inc_dir = tcl_inc_dir
You can’t perform that action at this time.
0 commit comments