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

Skip to content

Commit 6270f36

Browse files
committed
Merge branch 'v1.0.x-maint'
2 parents 79de2a7 + 984d83e commit 6270f36

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/api/font_file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
if 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',

setupext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)