File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717
1818if sys .platform == 'win32' :
1919 fpath = 'C:\\ Windows\\ Fonts\\ Tahoma.ttf'
20- elif sys .platform == 'linux2' :
20+ elif sys .platform . startswith ( 'linux' ) :
2121 fonts = ['/usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf' ,
2222 '/usr/share/fonts/truetype/ttf-liberation/LiberationSans-BoldItalic.ttf' ,
2323 '/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):
859859 result = p .communicate ()[0 ]
860860 return result
861861
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 ()
864864 tcl_lib = get_var (tcl_config , 'TCL_LIB_FLAG' )[2 :].strip ()
865865
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 ()
867867 tk_inc_dir = get_var (tk_config , 'TK_INCLUDE_SPEC' ).strip ()
868868 if tk_inc_dir == '' :
869869 tk_inc_dir = tcl_inc_dir
You can’t perform that action at this time.
0 commit comments